Skip to content

Commit

Permalink
Handle custom query string with preset params
Browse files Browse the repository at this point in the history
  • Loading branch information
afonic committed Nov 2, 2024
1 parent 140f85a commit 1430cd5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Http/Livewire/Traits/HandleParams.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

namespace Reach\StatamicLivewireFilters\Http\Livewire\Traits;

use Livewire\Attributes\On;
use Reach\StatamicLivewireFilters\Exceptions\CommandNotFoundException;
use Reach\StatamicLivewireFilters\Http\Livewire\LfTags;

Expand Down Expand Up @@ -197,7 +198,8 @@ protected function handlePresetParams()
}
}

protected function updateCustomQueryStringUrl(): void
#[On('preset-params')]
public function updateCustomQueryStringUrl(): void
{
if (config('statamic-livewire-filters.custom_query_string') === false) {
return;
Expand Down

0 comments on commit 1430cd5

Please sign in to comment.