Custom layout - setting data from $get throws fatal Typed property initialization error
Flare error is here https://flareapp.io/share/LPd8ElvP
I am creating a quote worksheet with a Custom layout component:
and i'm trying to pass into the
->viewData
method calculated values from other fields on the form
Thanks for any light that can shed on thisFlare
Typed property Filament\Forms\Components\Component::$container must not be accessed before initialization - The error occurred at https://f2t.test/admin/quotes/create
Solution:Jump to solution
I'm trying to use an existing method from the
ViewComponent
- if I change my method from viewData
to layoutData
and getLayoutData
it's all good. Thanks for listening 🦆1 Reply
Solution
I'm trying to use an existing method from the
ViewComponent
- if I change my method from viewData
to layoutData
and getLayoutData
it's all good. Thanks for listening 🦆