File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -164,7 +164,7 @@ public static function table(Table $table): Table
164
164
->form ([
165
165
Forms \Components \Select::make ('for ' )
166
166
->label (trans ('filament-types::messages.form.for ' ))
167
- ->options (config ( ' filament-types.for ' ))
167
+ ->options (static :: getTypes ( ))
168
168
->searchable ()
169
169
->afterStateUpdated (function (Forms \Set $ set ){
170
170
$ set ('type ' , null );
@@ -173,7 +173,7 @@ public static function table(Table $table): Table
173
173
->live (),
174
174
Forms \Components \Select::make ('type ' )
175
175
->label (trans ('filament-types::messages.form.type ' ))
176
- ->options (fn (Forms \Get $ get ) => collect ( config ( ' filament-types.types ' ))-> filter ( fn ( $ type , $ key ) => $ key === $ get ('for ' ))-> toArray () )
176
+ ->options (fn (Forms \Get $ get ) => $ get ( ' for ' ) ? static :: getTypes ( $ get ('for ' )) : [] )
177
177
->searchable (),
178
178
Forms \Components \Select::make ('parent_id ' )
179
179
->label (trans ('filament-types::messages.form.parent_id ' ))
You can’t perform that action at this time.
0 commit comments