Skip to content

Commit

Permalink
Merge pull request #6 from str4wh4t/main
Browse files Browse the repository at this point in the history
change local filters support boolean false value for checkbox filter
  • Loading branch information
coolsam726 authored Mar 24, 2022
2 parents 1c382ab + ee9660a commit ccc7983
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 ccc7983

Please sign in to comment.