Skip to content

Commit

Permalink
Handle sort param in LfTags
Browse files Browse the repository at this point in the history
  • Loading branch information
afonic committed Apr 20, 2024
1 parent 71246d8 commit 0ff28da
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Http/Livewire/LfTags.php
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ public function statamicFields(): Collection
#[On('tags-updated')]
public function updateTags($params)
{
$this->params = collect($params);
$this->params = collect($params)->reject(fn ($value, $key) => $key === 'sort');

$this->tags = collect();

Expand All @@ -70,6 +70,7 @@ public function updateTags($params)

public function parseConditions()
{

$this->params->each(function ($value, $key) {
[$field, $condition] = explode(':', $key);
$values = collect(explode('|', $value));
Expand Down

0 comments on commit 0ff28da

Please sign in to comment.