Skip to content

Commit

Permalink
map rerender bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesdoh0109 committed Nov 2, 2024
1 parent 39a2a60 commit e73fccb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frontend/plan/components/map/Map.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ function InnerMap({ locations, center } :InnerMapProps) {

useEffect(() => {
map.flyTo({ lat: center[0], lng: center[1]})
}, [locations])
}, [center[0], center[1]])

return (
<>
Expand Down

0 comments on commit e73fccb

Please sign in to comment.