Added dispatch in line in target page
Some checks failed
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (push) Successful in 19s
Gemini PR Review / Gemini PR Review (pull_request) Failing after 17s
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (pull_request) Successful in 13s
Laravel Pint / pint (pull_request) Successful in 2m34s
Laravel Larastan / larastan (pull_request) Failing after 6m21s

This commit is contained in:
dhanabalan
2026-10-12 15:17:36 +05:30
parent 0c6b5ef257
commit d8cccfe6d9

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;