diff --git a/umap/static/umap/js/umap.js b/umap/static/umap/js/umap.js index 93276395..c14e3f79 100644 --- a/umap/static/umap/js/umap.js +++ b/umap/static/umap/js/umap.js @@ -524,8 +524,8 @@ U.Map = L.Map.extend({ this.help.hide() } else { this.panel.close() - this.editPanel.close() - this.fullPanel.close() + this.editPanel?.close() + this.fullPanel?.close() } }