diff --git a/apps/antalmanac/src/components/Map/Routes.tsx b/apps/antalmanac/src/components/Map/Routes.tsx index 597e15f83..b22f413f6 100644 --- a/apps/antalmanac/src/components/Map/Routes.tsx +++ b/apps/antalmanac/src/components/Map/Routes.tsx @@ -146,7 +146,7 @@ export default function ClassRoutes(props: ClassRoutesProps) { return () => { routerRef.current.instance.remove(); }; - }, []); + }, [context.map, routerRef]); return null; }