Handle 'Is in' onOperatorChange

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

View File

@ -87,6 +87,16 @@
if (expression.noValue) { if (expression.noValue) {
expression.value = null 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 => { const getFieldOptions = field => {