mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-19 11:01:15 +00:00
fix(editor): Fix Multi option parameter expression when the value is an array (#12430)
This commit is contained in:
@@ -365,7 +365,7 @@ const getIssues = computed<string[]>(() => {
|
||||
if (Array.isArray(displayValue.value)) {
|
||||
checkValues = checkValues.concat(displayValue.value);
|
||||
} else {
|
||||
checkValues.push(displayValue.value as string);
|
||||
checkValues = checkValues.concat(displayValue.value?.toString().split(','));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -856,6 +856,8 @@ async function optionSelected(command: string) {
|
||||
(!props.modelValue || props.modelValue === '[Object: null]')
|
||||
) {
|
||||
valueChanged('={{ 0 }}');
|
||||
} else if (props.parameter.type === 'multiOptions') {
|
||||
valueChanged(`={{ ${JSON.stringify(props.modelValue)} }}`);
|
||||
} else if (
|
||||
props.parameter.type === 'number' ||
|
||||
props.parameter.type === 'boolean' ||
|
||||
|
||||
Reference in New Issue
Block a user