diff --git a/app/Filament/Resources/ItemResource.php b/app/Filament/Resources/ItemResource.php index 2109681..a11dd21 100644 --- a/app/Filament/Resources/ItemResource.php +++ b/app/Filament/Resources/ItemResource.php @@ -267,9 +267,7 @@ class ItemResource extends Resource ->options(function (callable $get) { $plantId = $get('Plant'); - return $plantId - ? Item::where('plant_id', $plantId)->pluck('code', 'id') - : []; + return $plantId ? Item::where('plant_id', $plantId)->pluck('code', 'id') : []; }) ->searchable() ->reactive(),