mirror of
https://github.com/n8n-io/n8n.git
synced 2025-03-05 20:50:17 -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)) {
|
if (Array.isArray(displayValue.value)) {
|
||||||
checkValues = checkValues.concat(displayValue.value);
|
checkValues = checkValues.concat(displayValue.value);
|
||||||
} else {
|
} 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;
|
if (props.isForCredential) opts.additionalKeys = resolvedAdditionalExpressionData.value;
|
||||||
const stringifyExpressionResult = props.parameter.type !== 'multiOptions';
|
const stringifyObject = props.parameter.type !== 'multiOptions';
|
||||||
return {
|
return {
|
||||||
ok: true,
|
ok: true,
|
||||||
result: workflowHelpers.resolveExpression(value, undefined, opts, stringifyExpressionResult),
|
result: workflowHelpers.resolveExpression(value, undefined, opts, stringifyObject),
|
||||||
};
|
};
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
return { ok: false, error };
|
return { ok: false, error };
|
||||||
|
|
Loading…
Reference in a new issue