Skip to content

Commit

Permalink
Removed excessive dependency that causes view to jump back to default…
Browse files Browse the repository at this point in the history
… always. (#1498)
  • Loading branch information
nilscb committed May 8, 2023
1 parent d9b2599 commit 4d1070a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion react/src/lib/components/SubsurfaceViewer/components/Map.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -507,7 +507,8 @@ const Map: React.FC<MapProps> = ({
if (typeof triggerHome !== "undefined") {
calcDefaultViewStates(reportedBoundingBoxAcc);
}
}, [calcDefaultViewStates, reportedBoundingBoxAcc, triggerHome]);
// eslint-disable-next-line react-hooks/exhaustive-deps
}, [triggerHome]);

useEffect(() => {
const union_of_reported_bboxes = addBoundingBoxes(
Expand Down

0 comments on commit 4d1070a

Please sign in to comment.