From 2f8cda83b608eeff5fa29332754a283654731f1b Mon Sep 17 00:00:00 2001 From: Yohan Boniface Date: Wed, 10 Jul 2024 10:32:25 +0200 Subject: [PATCH] wip: do not try to read map.fullPanel blindly It is only defined when user has write permissions. --- umap/static/umap/js/modules/browser.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/umap/static/umap/js/modules/browser.js b/umap/static/umap/js/modules/browser.js index fc4a1af4..6afdf92d 100644 --- a/umap/static/umap/js/modules/browser.js +++ b/umap/static/umap/js/modules/browser.js @@ -107,7 +107,7 @@ export default class Browser { this.map.eachBrowsableDataLayer((datalayer) => { datalayer.resetLayer(true) this.updateDatalayer(datalayer) - if (this.map.fullPanel.isOpen()) datalayer.tableEdit() + if (this.map.fullPanel?.isOpen()) datalayer.tableEdit() }) this.toggleBadge() }