conditional-container icon indicating copy to clipboard operation
conditional-container copied to clipboard

MorphTo bug

Open slowdream opened this issue 3 years ago • 0 comments

            MorphTo::make('Targetable')->types([
                City::class,
            ]),
            ConditionalContainer::make([
                Select::make('type')
                        ->options([EmergencyTypes::GENERAL => EmergencyTypes::GENERAL]),
            ])
                ->if(fn() => 'targetable_type = cities OR targetable = ' . City::uriKey()), // THIS WORK

               ->if(fn() => 'targetable = ' . City::uriKey()), // THIS NOT

slowdream avatar Apr 04 '22 13:04 slowdream