diff --git a/umap/static/umap/js/modules/data/layer.js b/umap/static/umap/js/modules/data/layer.js index 12086c1a..627f2081 100644 --- a/umap/static/umap/js/modules/data/layer.js +++ b/umap/static/umap/js/modules/data/layer.js @@ -282,7 +282,9 @@ export class DataLayer extends ServerStored { } backupData() { - this._geojson_bk = Utils.CopyJSON(this._geojson) + if (this._geojson) { + this._geojson_bk = Utils.CopyJSON(this._geojson) + } } reindex() {