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