Skip to content

Commit 5ba89fa

Browse files
committed
count 0 filters as active
1 parent 39efdbe commit 5ba89fa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

php/InertiaTable.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ protected function getQueryBuilderProps(): array
147147

148148
'filters' => $this->transformFilters(),
149149
'hasFilters' => $this->filters->isNotEmpty(),
150-
'hasEnabledFilters' => $this->filters->filter->value->isNotEmpty(),
150+
'hasEnabledFilters' => $this->filters->whereNotNull('value')->isNotEmpty(),
151151

152152
'searchInputs' => $searchInputs = $this->transformSearchInputs(),
153153
'searchInputsWithoutGlobal' => $searchInputsWithoutGlobal = $searchInputs->where('key', '!=', 'global'),

0 commit comments

Comments
 (0)