1
0
forked from poc/pds

to avoid conflicts between two dashboard pages

This commit is contained in:
dhanabalan
2025-04-28 12:48:51 +05:30
parent cbbf35eec9
commit e5df28c85d
2 changed files with 7 additions and 3 deletions

View File

@@ -42,9 +42,9 @@ class HourlyProduction extends Page
->reactive()
->afterStateUpdated(function ($state) {
session(['selected_plant' => $state]);
// dd(session('selected_plant'));
$this->triggerChartUpdate();
// Clear production quantity Dashboard session keys to avoid conflict
session()->forget(['select_plant', 'select_line']);
$this->triggerChartUpdate();
}),
// Line Filter