mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 18:12:04 +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)) {
|
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 };
|
||||||
|
|||||||
Reference in New Issue
Block a user