Merge pull request 'Added dispatch in line in target page' (#1228) from ranjith-dev into master
All checks were successful
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (push) Successful in 13s

Reviewed-on: #1228
This commit was merged in pull request #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;