From ebfefefec0c6c3c1c054cce0bd58962f3c8ac53c Mon Sep 17 00:00:00 2001 From: tahaalam Date: Sun, 12 Apr 2026 10:57:06 +0300 Subject: [PATCH] issue fix for the projects having distance not found if the permission for the application --- .../emergency_services/emergency_services_view_model.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/features/emergency_services/emergency_services_view_model.dart b/lib/features/emergency_services/emergency_services_view_model.dart index c8a16455..8c2dd6ba 100644 --- a/lib/features/emergency_services/emergency_services_view_model.dart +++ b/lib/features/emergency_services/emergency_services_view_model.dart @@ -274,7 +274,6 @@ class EmergencyServicesViewModel extends ChangeNotifier { void navigateTOAmbulancePage() { placeValueInController(); - getProjects(); flushData(); selectedFacility = FacilitySelection.ALL; @@ -282,6 +281,7 @@ class EmergencyServicesViewModel extends ChangeNotifier { locationUtils!.getLocation( isShowConfirmDialog: true, onSuccess: (position) { + getProjects(); updateBottomSheetState(BottomSheetType.FIXED); navServices.push( CustomPageRoute(page: CallAmbulancePage(), direction: AxisDirection.down),