Handle 'Is in' onOperatorChange

This commit is contained in:
Mel O'Hagan 2022-08-06 20:52:34 +01:00
parent fbdef393f9
commit 350e0233e2
1 changed files with 10 additions and 0 deletions

View File

@ -87,6 +87,16 @@
if (expression.noValue) {
expression.value = null
}
if (
operator === Constants.OperatorOptions.In.value &&
!Array.isArray(expression.value)
) {
if (expression.value) {
expression.value = [expression.value]
} else {
expression.value = []
}
}
}
const getFieldOptions = field => {