mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 18:12:04 +00:00
feat(Salesforce Node): Add credentials test (#14486)
This commit is contained in:
@@ -170,11 +170,10 @@ const isCredentialTestable = computed(() => {
|
||||
return false;
|
||||
}
|
||||
|
||||
const hasUntestableExpressions = Object.values(credentialData.value).reduce(
|
||||
(accu: boolean, value: CredentialInformation) =>
|
||||
accu || (typeof value === 'string' && isExpression(value) && !isTestableExpression(value)),
|
||||
false,
|
||||
);
|
||||
const hasUntestableExpressions = credentialProperties.value.some((prop) => {
|
||||
const value = credentialData.value[prop.name];
|
||||
return typeof value === 'string' && isExpression(value) && !isTestableExpression(value);
|
||||
});
|
||||
if (hasUntestableExpressions) {
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user