diff --git a/src/Filament/Resources/NavigationResource/Pages/Concerns/HandlesNavigationBuilder.php b/src/Filament/Resources/NavigationResource/Pages/Concerns/HandlesNavigationBuilder.php index 8870c35..3c4ba4d 100644 --- a/src/Filament/Resources/NavigationResource/Pages/Concerns/HandlesNavigationBuilder.php +++ b/src/Filament/Resources/NavigationResource/Pages/Concerns/HandlesNavigationBuilder.php @@ -112,10 +112,10 @@ protected function getActions(): array Group::make() ->statePath('data') ->whenTruthy('type') - ->schema(function (Get $get) { + ->schema(function (Get $get, Component $component) { $type = $get('type'); - return SkyPlugin::get()->getItemTypes()[$type]['fields'] ?? []; + return $component->evaluate(SkyPlugin::get()->getItemTypes()[$type]['fields']) ?? []; }), Group::make() ->statePath('data')