diff --git a/packages/node_modules/@node-red/editor-client/src/js/ui/projects/projectSettings.js b/packages/node_modules/@node-red/editor-client/src/js/ui/projects/projectSettings.js index c39ac97be..336893a59 100644 --- a/packages/node_modules/@node-red/editor-client/src/js/ui/projects/projectSettings.js +++ b/packages/node_modules/@node-red/editor-client/src/js/ui/projects/projectSettings.js @@ -928,11 +928,11 @@ RED.projects.settings = (function() { saveDisabled = isFlowInvalid || credFileLabelText.text()===""; - if (credentialSecretExistingInput.is(":visible")) { + if (credentialSecretExistingRow.is(":visible")) { credentialSecretExistingInput.toggleClass("input-error", credentialSecretExistingInput.val() === ""); saveDisabled = saveDisabled || credentialSecretExistingInput.val() === ""; } - if (credentialSecretNewInput.is(":visible")) { + if (credentialSecretNewRow.is(":visible")) { credentialSecretNewInput.toggleClass("input-error", credentialSecretNewInput.val() === ""); saveDisabled = saveDisabled || credentialSecretNewInput.val() === ""; } @@ -1130,7 +1130,7 @@ RED.projects.settings = (function() { } if (credentialSecretResetButton.hasClass('selected') || credentialSecretEditButton.hasClass('selected')) { payload.credentialSecret = credentialSecretNewInput.val(); - if (credentialSecretExistingInput.is(":visible")) { + if (credentialSecretExistingRow.is(":visible")) { payload.currentCredentialSecret = credentialSecretExistingInput.val(); } }