diff --git a/appv2/src/UI/Map/OnHoverActivity.tsx b/appv2/src/UI/Map/OnHoverActivity.tsx index 05eee2573..f55a69a8d 100644 --- a/appv2/src/UI/Map/OnHoverActivity.tsx +++ b/appv2/src/UI/Map/OnHoverActivity.tsx @@ -37,7 +37,7 @@ export const OnHoverActivity = (props: any) => { popupRef?.current?.remove(); return; } else { - if (row.short_id) { + if (row.short_id && centerPointGeometry !== null) { popupRef.current?.bindPopup(row?.short_id); } else { popupRef.current?.bindPopup(row?.id); @@ -53,5 +53,5 @@ export const OnHoverActivity = (props: any) => { map.panTo(map.unproject(px),{animate: true}); // pan to new center }); - return centerPointGeometry !== null ? : null; + return centerPointGeometry !== null ? : null; }; diff --git a/appv2/src/UI/Overlay/Records/RecordSet.tsx b/appv2/src/UI/Overlay/Records/RecordSet.tsx index de5b584a9..d5fc63867 100644 --- a/appv2/src/UI/Overlay/Records/RecordSet.tsx +++ b/appv2/src/UI/Overlay/Records/RecordSet.tsx @@ -275,7 +275,7 @@ const Filter = (props) => { } }); }}> - {serverBoundariesToDisplay.map((option) => { + {serverBoundariesToDisplay?.map((option) => { return (