diff --git a/umap/static/umap/js/modules/data/layer.js b/umap/static/umap/js/modules/data/layer.js index 02692f57..eab990ea 100644 --- a/umap/static/umap/js/modules/data/layer.js +++ b/umap/static/umap/js/modules/data/layer.js @@ -283,7 +283,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() {