fix: return null from FitBounds component

This commit is contained in:
2025-08-14 21:14:33 +00:00
parent 478dca185e
commit 87e706c223

View File

@@ -147,6 +147,8 @@ function FitBounds({ coords, mapState, end, duration, loading }) {
isInitialLoad.current = false; isInitialLoad.current = false;
} }
}, [coords, loading, map]); // Dependencies: run when data is ready. }, [coords, loading, map]); // Dependencies: run when data is ready.
return null;
} }
function Map({end, duration, slider, mapState, setMapState}) { function Map({end, duration, slider, mapState, setMapState}) {