F
Filamentβ€’6mo 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
marianov24β€’6mo 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 πŸ˜„