Skip to content

Commit 74b5c82

Browse files
authored
Add LivewireComponentArrayFilter isEmpty check
1 parent 001e300 commit 74b5c82

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Views/Filters/LivewireComponentArrayFilter.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ public function validate(array $value): array|bool
2525

2626
public function isEmpty(array $value = []): bool
2727
{
28-
return empty($value);
28+
return (empty($value) || (count($value) == 1 && (is_null($value[0]) || $value[0] == "")));
2929
}
3030

3131
/**

0 commit comments

Comments
 (0)