From 8e7271abf3ef24a8ad032044e714becf83717884 Mon Sep 17 00:00:00 2001 From: Ruslan Bakiev Date: Wed, 7 Jan 2026 10:35:40 +0700 Subject: [PATCH] Fix: check all 4 coordinates in routesForMap filter --- app/composables/useTeamOrders.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/composables/useTeamOrders.ts b/app/composables/useTeamOrders.ts index 7b0a9b5..20a9f7a 100644 --- a/app/composables/useTeamOrders.ts +++ b/app/composables/useTeamOrders.ts @@ -28,7 +28,7 @@ export function useTeamOrders() { name: order.name, status: order.status, stages: (order.stages || []) - .filter((s: any) => s.stageType === 'transport' && s.sourceLatitude && s.destinationLatitude) + .filter((s: any) => s.stageType === 'transport' && s.sourceLatitude && s.sourceLongitude && s.destinationLatitude && s.destinationLongitude) .map((s: any) => ({ fromLat: s.sourceLatitude, fromLon: s.sourceLongitude,