Skip to content

Commit

Permalink
remove useEffect
Browse files Browse the repository at this point in the history
  • Loading branch information
CollinBeczak committed Jan 8, 2025
1 parent 8385601 commit bca302f
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions src/components/MapillaryViewer/MapillaryViewer.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,6 @@ const MapillaryViewer = ({ initialImageKey, onClose }) => {
// Cleanup if necessary
viewerRef.current = null;
};
}, []);

useEffect(() => {
if (viewerRef.current) {
viewerRef.current.moveTo(initialImageKey);
}
}, [initialImageKey]);

return (
Expand Down

0 comments on commit bca302f

Please sign in to comment.