fix: [workflow:editor] Prevent crashing if module param changed to multi-select

pull/9370/head
Sami Mokaddem 2023-10-25 09:22:18 +02:00
parent c952fcad4b
commit 6bbb5e1316
No known key found for this signature in database
GPG Key ID: 164C473F627A06FA
1 changed files with 1 additions and 1 deletions

View File

@ -1796,7 +1796,7 @@ function genSelect(options, forNode = true) {
})
if (options.value !== undefined) {
$select.find('option').filter(function() {
if (options.multiple) {
if (options.multiple && Array.isArray(options.value)) {
return options.value.includes(this.value)
} else {
return this.value == options.value