F
Filamentβ€’12mo ago
marianov24

clean filters from Dashboard

I'm using use
HasFiltersForm;
public function filtersForm(Form $form): Form
{ ....... }
HasFiltersForm;
public function filtersForm(Form $form): Form
{ ....... }
I need clean filters went enter to dashboard page.
1 Reply
marianov24
marianov24OPβ€’12mo ago
help please 😦 i add on ChartWidget.php
public function mount(): void
{
$this->filters = null;
$this->dataChecksum = $this->generateDataChecksum();
}
public function mount(): void
{
$this->filters = null;
$this->dataChecksum = $this->generateDataChecksum();
}
But i got an error Cannot mutate reactive prop [filters] How can i solve this ? I made a solution ... The filters are saved on session. So on custom page add mount function with session()->remove('Detalle_filters') I don't know if this is good, but is working πŸ˜„
Want results from more Discord servers?
Add your server