mirror of
https://gitlab.com/bramw/baserow.git
synced 2025-04-14 17:18:33 +00:00
Fix empty array check
This commit is contained in:
parent
4900921035
commit
aba97a71ca
1 changed files with 2 additions and 2 deletions
|
@ -479,7 +479,7 @@ export class EmptyViewFilterType extends ViewFilterType {
|
|||
matches(rowValue, filterValue, field, fieldType) {
|
||||
return (
|
||||
rowValue === null ||
|
||||
rowValue === [] ||
|
||||
(Array.isArray(rowValue) && rowValue.length === 0) ||
|
||||
rowValue === false ||
|
||||
rowValue.toString().trim() === ''
|
||||
)
|
||||
|
@ -522,7 +522,7 @@ export class NotEmptyViewFilterType extends ViewFilterType {
|
|||
matches(rowValue, filterValue, field, fieldType) {
|
||||
return !(
|
||||
rowValue === null ||
|
||||
rowValue === [] ||
|
||||
(Array.isArray(rowValue) && rowValue.length === 0) ||
|
||||
rowValue === false ||
|
||||
rowValue.toString().trim() === ''
|
||||
)
|
||||
|
|
Loading…
Add table
Reference in a new issue