Skip to content

Commit ade99a6

Browse files
committed
front: make stdcm map less laggy
1 parent 028ae7b commit ade99a6

File tree

1 file changed

+1
-1
lines changed
  • front/src/modules/trainschedule/components/ManageTrainSchedule

1 file changed

+1
-1
lines changed

front/src/modules/trainschedule/components/ManageTrainSchedule/Map.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ const Map = ({ pathProperties, setMapCanvas, hideAttribution = false }: MapProps
9898
}
9999
};
100100
if (mapIsLoaded) captureMap();
101-
}, [mapIsLoaded, geoJson, viewport]);
101+
}, [mapIsLoaded, geoJson, pathProperties]);
102102

103103
const scaleControlStyle = {
104104
left: 20,

0 commit comments

Comments
 (0)