mirror of
https://github.com/windmill-labs/windmill.git
synced 2026-08-23 00:00:33 +00:00
multiselect findOptionsByValue: JSON.parse
This commit is contained in:
@@ -75,7 +75,13 @@
|
||||
|
||||
function findOptionsByValue(values: any[]) {
|
||||
return options?.filter((item) => {
|
||||
return values.some((value) => deepEqual(item.value, value))
|
||||
let itemValue = item.value
|
||||
try {
|
||||
if (typeof itemValue == 'string') {
|
||||
itemValue = JSON.parse(itemValue)
|
||||
}
|
||||
} catch (_) {}
|
||||
return values.some((value) => deepEqual(itemValue, value))
|
||||
}) as ObjectOption[]
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user