Skip to content

Commit

Permalink
change local filters support boolean false value for checkbox filter
Browse files Browse the repository at this point in the history
  • Loading branch information
str4wh4t committed Mar 24, 2022
1 parent 1c382ab commit ee9660a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/PrimevueDatatables.php
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ public function make(): \Illuminate\Contracts\Pagination\LengthAwarePaginator
}
}
} else {
if (collect($filter)->get("value")) {
if (collect($filter)->get("value") !== null) {
$instance = new Filter($field, collect($filter)->get("value"), collect($filter)->get("matchMode"));
$this->applyFilter($instance, $q);
}
Expand Down

0 comments on commit ee9660a

Please sign in to comment.