Skip to content

Commit

Permalink
Property previousSelected not needed anymore
Browse files Browse the repository at this point in the history
  • Loading branch information
afonic committed Nov 11, 2024
1 parent abcace2 commit f426f40
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/Http/Livewire/LfCheckboxFilter.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,6 @@ class LfCheckboxFilter extends Component

public $selected = [];

public $previousSelected = [];

#[Computed(persist: true)]
public function filterOptions()
{
Expand All @@ -45,7 +43,6 @@ public function updatedSelected()
public function clear()
{
$this->selected = [];
$this->previousSelected = [];
$this->clearFilters();
}

Expand All @@ -72,7 +69,6 @@ public function setPresetValues($params)
{
if (array_key_exists($this->getParamKey(), $params)) {
$this->selected = explode('|', $params[$this->getParamKey()]);
$this->previousSelected = $this->selected;
}
}

Expand Down

0 comments on commit f426f40

Please sign in to comment.