fix: array operator render

This commit is contained in:
Joel 2024-10-08 14:45:28 +08:00
parent 44e81dbbc8
commit 7e2984b6e2

View File

@ -43,8 +43,7 @@ const ConditionOperator = ({
}
})
}, [t, varType, file])
const selectedOption = options.find(o => o.value === value)
const selectedOption = options.find(o => Array.isArray(value) ? o.value === value[0] : o.value === value)
return (
<PortalToFollowElem
open={open}