✏️ Rename check

This commit is contained in:
Iván Ovejero 2022-05-05 15:07:16 +02:00
parent f7cff0382a
commit bc4aaa6d0e

View file

@ -230,7 +230,7 @@ export const nodeHelpers = mixins(
) { ) {
const stored = this.getCredentialsByType(nodeCredentialType); const stored = this.getCredentialsByType(nodeCredentialType);
if (selectedCredsWereDeleted(node, nodeCredentialType, stored)) { if (selectedCredsDoNotExist(node, nodeCredentialType, stored)) {
const credential = this.getCredentialTypeByName(nodeCredentialType); const credential = this.getCredentialTypeByName(nodeCredentialType);
return reportUnsetCredential(credential); return reportUnsetCredential(credential);
} }
@ -455,7 +455,7 @@ function selectedCredsAreUnusable(node: INodeUi, credentialType: string) {
* Whether the node's selected credentials of the specified type * Whether the node's selected credentials of the specified type
* can no longer be found in the database. * can no longer be found in the database.
*/ */
function selectedCredsWereDeleted( function selectedCredsDoNotExist(
node: INodeUi, node: INodeUi,
nodeCredentialType: string, nodeCredentialType: string,
storedCredsByType: ICredentialsResponse[] | null, storedCredsByType: ICredentialsResponse[] | null,