fix(editor): Fix parameter input validation (#12532)

This commit is contained in:
Shireen Missi 2025-01-09 12:58:46 +00:00 committed by Shireen Missi
parent 326a221f36
commit 6f757f10bd
No known key found for this signature in database
GPG key ID: D213F10998FACC51
2 changed files with 3 additions and 3 deletions

View file

@ -365,7 +365,7 @@ const getIssues = computed<string[]>(() => {
if (Array.isArray(displayValue.value)) {
checkValues = checkValues.concat(displayValue.value);
} else {
checkValues = checkValues.concat(displayValue.value?.toString().split(','));
checkValues.push(displayValue.value);
}
}

View file

@ -132,10 +132,10 @@ const evaluatedExpression = computed<Result<unknown, Error>>(() => {
}
if (props.isForCredential) opts.additionalKeys = resolvedAdditionalExpressionData.value;
const stringifyExpressionResult = props.parameter.type !== 'multiOptions';
const stringifyObject = props.parameter.type !== 'multiOptions';
return {
ok: true,
result: workflowHelpers.resolveExpression(value, undefined, opts, stringifyExpressionResult),
result: workflowHelpers.resolveExpression(value, undefined, opts, stringifyObject),
};
} catch (error) {
return { ok: false, error };