fix: return null from FitBounds component
This commit is contained in:
1 parent
478dca185e
commit
87e706c223
1 file changed
+2
@@ -147,6 +147,8 @@ function FitBounds({ coords, mapState, end, duration, loading }) {
|
||||
isInitialLoad.current = false;
|
||||
}
|
||||
}, [coords, loading, map]); // Dependencies: run when data is ready.
|
||||
|
||||
return null;
|
||||
}
|
||||
|
||||
function Map({end, duration, slider, mapState, setMapState}) {
|
||||
|
||||
Reference in new issue
Block a user