mirror of https://github.com/MISP/MISP
fix: [workflow:editor] Prevent crashing if module param changed to multi-select
parent
c952fcad4b
commit
6bbb5e1316
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue