parent
d744e0af47
commit
3448551a0a
1 changed files with 2 additions and 2 deletions
|
@ -59,10 +59,10 @@ class CardFilter {
|
|||
return (filter.values.find((cValue) => (Array.isArray(value) ? value.includes(cValue) : cValue === value)) === undefined)
|
||||
}
|
||||
case 'isEmpty': {
|
||||
return value?.length <= 0
|
||||
return (value || '').length <= 0
|
||||
}
|
||||
case 'isNotEmpty': {
|
||||
return value?.length > 0
|
||||
return (value || '').length > 0
|
||||
}
|
||||
default: {
|
||||
Utils.assertFailure(`Invalid filter condition ${filter.condition}`)
|
||||
|
|
Loading…
Reference in a new issue