From 61852af0eb00a3e89bc70bf8a768b104850309fc Mon Sep 17 00:00:00 2001 From: Karagappa Date: Thu, 5 Dec 2024 10:18:49 +0100 Subject: [PATCH] :beetle: small bug fix --- frontend/src/components/TripChainView.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/components/TripChainView.tsx b/frontend/src/components/TripChainView.tsx index d41044ae..f4beefb1 100644 --- a/frontend/src/components/TripChainView.tsx +++ b/frontend/src/components/TripChainView.tsx @@ -68,7 +68,7 @@ export default function TripChainView(): JSX.Element { const getLocation = useCallback( (id: number) => { - return context.locations?.all().find((location) => location.location_id === id); + return context.locations?.find((location) => location.location_id === id); }, [context.locations] );