F
Filament10mo 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.
4 Replies
Skjena
Skjena10mo 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 Ele10mo ago
can you resolved it?
Skjena
Skjena9mo ago
Yes, however, I'm unable to get the current filter value. Could you please help me?
Jota Ele
Jota Ele9mo ago
i asked because i has the same problem bro