Call to a member function getInfolist() on null
I'm trying to create a custom Infolist action, but I'm getting the following error
Call to a member function getInfolist() on null
This is the action I've created
4 Replies
I think
getRecord()
isn't available at this pointIt's before that actually. In the
BelongsToInfolist
trait, the method getComponent()
returns null
Not sure if I'm supposed to manually pass the component, but that doesn't sound right since the dafault Filament\Infolists\Components\Actions\Action
works as expected. Maybe I'm missing something 🤔Solution
closure maybe
Heh yeah I checked the other custom actions and that's how they do it.