Skip to content

Commit

Permalink
Fix resolveFilters for dynamic filters (#1550)
Browse files Browse the repository at this point in the history
  • Loading branch information
luanfreitasdev committed May 14, 2024
1 parent 6aba7ec commit b808e49
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Concerns/Filter.php
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,7 @@ private function resolveFilters(): void
$attributes = array_values((array) data_get($filter, 'attributes'));

foreach ($attributes as $value) {
if (is_string($value) && str_contains($value, 'filters.')) {
if (is_string($value) && str_contains($value, 'filters.') && is_null(data_get($this->filters, str($value)->after('filters.')))) {
data_set($this->filters, str($value)->replace('filters.', ''), null);
}
}
Expand Down

0 comments on commit b808e49

Please sign in to comment.