Getting Error in Sudden Change in Tab

I'm using a Custom table which is changing through a Year filter and I 'm getting Typed property Filament\Widgets\TableWidget::$table must not be accessed before initialization this error when i suddenly change my year filter
7 Replies
toeknee
toeknee3mo ago
Provide your widget code please.
toeknee
toeknee3mo ago
I'd try and debug this, for example: return $this->filters['year'] . ' - Report'; filters are part of table, and it looks here you are trying to set the title before the table is initialised. Please try commenting this out.
hello_world
hello_world3mo ago
Still getting the error Typed property Filament\Widgets\TableWidget::$table must not be accessed before initialization
toeknee
toeknee3mo ago
Is it only when you select the filter? If so can you provide the filter as you are using the page filter/code.
hello_world
hello_world3mo ago
here i sthe code
hello_world
hello_world3mo ago
got the solution
protected static bool $isLazy = false;
protected static bool $isLazy = false;
the error is gone by using this
Want results from more Discord servers?
Add your server
More Posts