diff --git a/app/Filament/Pages/ProductionTarget.php b/app/Filament/Pages/ProductionTarget.php index e8180bbe..f49fae02 100644 --- a/app/Filament/Pages/ProductionTarget.php +++ b/app/Filament/Pages/ProductionTarget.php @@ -137,7 +137,10 @@ class ProductionTarget extends Page ->pluck('name', 'id') ->toArray(); }) - ->reactive(), + ->reactive() + ->afterStateUpdated(function ($state, callable $get, $set) { + $this->dispatch('loadData',$state, '', '', '', ''); + }), // ->afterStateUpdated(function ($state, callable $get, $set) { // $plantId = $get('plant_id'); // $lineId = $state;