From d8cccfe6d9474c5b428c99c610e8754f7d85b66e Mon Sep 17 00:00:00 2001 From: dhanabalan Date: Mon, 12 Oct 2026 15:17:36 +0530 Subject: [PATCH] Added dispatch in line in target page --- app/Filament/Pages/ProductionTarget.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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; -- 2.49.1