Skip to content

Interactive interface for browsing global, full-resolution satellite imagery

Changed useEffect return value from 'false' to 'undefined' (#6391)

Jason Hurley91765872ac25
diff --git a/web/js/components/context-menu/context-menu.js b/web/js/components/context-menu/context-menu.js
index 15378cbea..6a38c2c2d 100644
--- a/web/js/components/context-menu/context-menu.js
+++ b/web/js/components/context-menu/context-menu.js
@@ -79,7 +79,7 @@ function RightClickMenu(props) {
};
useEffect(() => {
- if (isCoordinateSearchActive) return false;
+ if (isCoordinateSearchActive) return undefined;
events.on(MAP_SINGLE_CLICK, handleClick);
events.on(MAP_CONTEXT_MENU, handleContextEvent);
return () => {