feat(Salesforce Node): Add credentials test (#14486)

This commit is contained in:
RomanDavydchuk
2025-04-14 09:46:37 +03:00
committed by GitHub
parent cade309d3b
commit 6b2d31ca2b
2 changed files with 73 additions and 6 deletions

View File

@@ -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;
}