1
0
forked from poc/pds

Merge pull request 'Added dispatch in line in target page' (#1228) from ranjith-dev into master

Reviewed-on: poc/pds#1228
This commit is contained in:
2026-10-12 09:47:52 +00:00

View File

@@ -137,7 +137,10 @@ class ProductionTarget extends Page
->pluck('name', 'id') ->pluck('name', 'id')
->toArray(); ->toArray();
}) })
->reactive(), ->reactive()
->afterStateUpdated(function ($state, callable $get, $set) {
$this->dispatch('loadData',$state, '', '', '', '');
}),
// ->afterStateUpdated(function ($state, callable $get, $set) { // ->afterStateUpdated(function ($state, callable $get, $set) {
// $plantId = $get('plant_id'); // $plantId = $get('plant_id');
// $lineId = $state; // $lineId = $state;