ranjith-dev #668

Merged
jothi merged 6 commits from ranjith-dev into master 2026-05-29 11:05:50 +00:00
Showing only changes of commit 29b4775af2 - Show all commits

View File

@@ -56,19 +56,15 @@ class WorkGroupMasterResource extends Resource
->afterStateUpdated(function ($state, $set, callable $get) {
$plantId = $get('plant_id');
if (! $plantId) {
$set('pqPlantError', 'Please select a plant first.');
$set('name', null);
$set('description', null);
$set('operation_number', null);
return;
}
$set('pqPlantError', null);
$set('name', null);
$set('description', null);
$set('operation_number', null);
if (! $plantId) {
$set('pqPlantError', 'Please select a plant first.');
return;
}
})
->hint(fn ($get) => $get('pqPlantError') ? $get('pqPlantError') : null)
->hintColor('danger'),