1
0
forked from poc/pds

Merge pull request 'chnaged indentation in item resource page' (#52) from ranjith-dev into master

Reviewed-on: poc/pds#52
This commit is contained in:
2025-12-01 12:10:12 +00:00

View File

@@ -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(),