Skip to content

Commit

Permalink
fix(editor): Fix parameter input validation (#12532)
Browse files Browse the repository at this point in the history
  • Loading branch information
ShireenMissi committed Jan 9, 2025
1 parent 326a221 commit 6f757f1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/editor-ui/src/components/ParameterInput.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}
Expand Down
4 changes: 2 additions & 2 deletions packages/editor-ui/src/components/ParameterInputWrapper.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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 };
Expand Down

0 comments on commit 6f757f1

Please sign in to comment.