diff --git a/umap/static/umap/js/modules/data/layer.js b/umap/static/umap/js/modules/data/layer.js index dde942b4..734aaca1 100644 --- a/umap/static/umap/js/modules/data/layer.js +++ b/umap/static/umap/js/modules/data/layer.js @@ -611,7 +611,10 @@ export class DataLayer extends ServerStored { } reset() { - if (!this.createdOnServer) this.erase() + if (!this.createdOnServer) { + this.erase() + return + } this.resetOptions() this.parentPane.appendChild(this.pane)