..
This commit is contained in:
parent
fe4a64e4d2
commit
831aacc202
@ -331,14 +331,17 @@ class _ManageReportingBottomSheetState
|
|||||||
await controller.fetchReportingManagers(empId);
|
await controller.fetchReportingManagers(empId);
|
||||||
await controller.fetchEmployeeDetails(empId);
|
await controller.fetchEmployeeDetails(empId);
|
||||||
} catch (_) {
|
} catch (_) {
|
||||||
// ignore if controller not found — not critical
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Optional: re-fetch the organization hierarchy list (if needed elsewhere)
|
// Optional: re-fetch the organization hierarchy list (if needed elsewhere)
|
||||||
await ApiService.getOrganizationHierarchyList(employeeId);
|
await ApiService.getOrganizationHierarchyList(employeeId);
|
||||||
|
|
||||||
// Keep sheet open and reset selections
|
|
||||||
_resetForm();
|
_resetForm();
|
||||||
|
if (Navigator.of(context).canPop()) {
|
||||||
|
Navigator.of(context).pop();
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
showAppSnackbar(
|
showAppSnackbar(
|
||||||
title: 'Error',
|
title: 'Error',
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user