Skip to content

Commit

Permalink
Fix toggleColumn (#1369)
Browse files Browse the repository at this point in the history
  • Loading branch information
luanfreitasdev authored Feb 1, 2024
1 parent 49354e3 commit 8fa0261
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/PowerGridComponent.php
Original file line number Diff line number Diff line change
Expand Up @@ -140,21 +140,21 @@ public function updatedSearch(): void
}
}

#[Computed(persist: true)]
#[Computed]
public function hasColumnFilters(): bool
{
return collect($this->columns)
->filter(fn ($column) => filled($column->filters))->count() > 0;
}

#[Computed(persist: true)]
#[Computed]
public function visibleColumns(): BaseCollection
{
return collect($this->columns)
->where('forceHidden', false);
}

#[Computed(persist: true)]
#[Computed]
protected function getCachedData(): mixed
{
if (!Cache::supportsTags() || !boolval(data_get($this->setUp, 'cache.enabled'))) {
Expand Down

0 comments on commit 8fa0261

Please sign in to comment.