From 6f757f10bd9102394d2a0b6bbc795f90444f66d2 Mon Sep 17 00:00:00 2001 From: Shireen Missi <94372015+ShireenMissi@users.noreply.github.com> Date: Thu, 9 Jan 2025 12:58:46 +0000 Subject: [PATCH] fix(editor): Fix parameter input validation (#12532) --- packages/editor-ui/src/components/ParameterInput.vue | 2 +- packages/editor-ui/src/components/ParameterInputWrapper.vue | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/editor-ui/src/components/ParameterInput.vue b/packages/editor-ui/src/components/ParameterInput.vue index ba04cbfc2fc2c..359a0a6549c88 100644 --- a/packages/editor-ui/src/components/ParameterInput.vue +++ b/packages/editor-ui/src/components/ParameterInput.vue @@ -365,7 +365,7 @@ const getIssues = computed(() => { if (Array.isArray(displayValue.value)) { checkValues = checkValues.concat(displayValue.value); } else { - checkValues = checkValues.concat(displayValue.value?.toString().split(',')); + checkValues.push(displayValue.value); } } diff --git a/packages/editor-ui/src/components/ParameterInputWrapper.vue b/packages/editor-ui/src/components/ParameterInputWrapper.vue index 202729440013b..f0db8cc4578e0 100644 --- a/packages/editor-ui/src/components/ParameterInputWrapper.vue +++ b/packages/editor-ui/src/components/ParameterInputWrapper.vue @@ -132,10 +132,10 @@ const evaluatedExpression = computed>(() => { } 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 };