mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-16 17:46:45 +00:00
fix(editor): Fix parameter input validation (#12532)
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -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 };
|
||||
|
||||
Reference in New Issue
Block a user