F
Filament14mo ago
Skjena

Typed property Filament\Widgets\TableWidget::$table must not be accessed before initialization.

$this->getTableFilterState("key")["value"] returns the error $table must not be used before initialisation when I try to retrieve the current filter value.
5 Replies
Skjena
SkjenaOP14mo ago
I made a custom table widget and designed my filter fields inside getTableFilters(). Inside getTableQuery(), I called $this->getTableFilterState("key")["value"] to obtain the filter value. It worked well in version 2, but in version 3, it gives $table must not be accessed before initialization.
Jota Ele
Jota Ele14mo ago
can you resolved it?
Skjena
SkjenaOP14mo ago
Yes, however, I'm unable to get the current filter value. Could you please help me?
Jota Ele
Jota Ele14mo ago
i asked because i has the same problem bro
pocket.racer
pocket.racer3mo ago
same problem too, sometimes happen when switching the select choice in a dashboard filter or when the dashboard page with form filters load
Want results from more Discord servers?
Add your server