Skip to content

Kepler.gl is a powerful open source geospatial analysis tool for large-scale data sets.

[Bug] save to map provider (#1399)

Víctor Velarde498305cc2b4e
diff --git a/src/components/map-container.js b/src/components/map-container.js
index 7af4c4f47..533d3159e 100644
--- a/src/components/map-container.js
+++ b/src/components/map-container.js
@@ -503,7 +503,7 @@ export default function MapContainerFactory(MapPopover, MapControl, Editor) {
transformRequest
};
- const isEdit = mapControls.mapDraw.active;
+ const isEdit = mapControls.mapDraw ? mapControls.mapDraw.active : false;
const hasGeocoderLayer = layers.find(l => l.id === GEOCODER_LAYER_ID);
return (