mirror of
https://github.com/n8n-io/n8n.git
synced 2025-01-11 12:57:29 -08:00
fix(editor): Fix parameter input validation (#12532)
This commit is contained in:
parent
326a221f36
commit
6f757f10bd
|
@ -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 };
|
||||
|
|
Loading…
Reference in a new issue