diff --git a/src/Components/Map/UtopiaMap.tsx b/src/Components/Map/UtopiaMap.tsx index 7716768f..b75f2531 100644 --- a/src/Components/Map/UtopiaMap.tsx +++ b/src/Components/Map/UtopiaMap.tsx @@ -102,7 +102,7 @@ function UtopiaMap({ {geo && { - e.layer!.closePopup(); + selectNewItemPosition && e.layer!.closePopup(); selectNewItemPosition && setMapClicked({ position: e.latlng, setItemFormPopup: setItemFormPopup }) }, }} />}