This commit is contained in:
Manish 2025-11-13 11:30:36 +05:30 committed by Vaibhav Surve
parent ba6d58fd0a
commit 1f694381a1

View File

@ -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',