Skip to content

Interactive interface for browsing global, full-resolution satellite imagery

WV-3711: Location Search Projection Switch Fix (#6205)

christof-wittreich6910ce65454b
diff --git a/web/js/mapUI/components/markers/markers.js b/web/js/mapUI/components/markers/markers.js
index c6e225dde..5c9619a28 100644
--- a/web/js/mapUI/components/markers/markers.js
+++ b/web/js/mapUI/components/markers/markers.js
@@ -130,8 +130,9 @@ function Markers(props) {
};
useEffect(() => {
+ if (!ui.selected || !ui.selected.proj) return;
handleActiveMapMarker();
- }, [ui]);
+ }, [ui, ui.selected?.proj]);
useEffect(() => {
switch (action.type) {