1
0
Fork 0
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:
Scott Fortmann-Roe 2021-04-15 09:33:51 +01:00
parent 4900921035
commit aba97a71ca

View file

@ -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() === ''
)