wip: do not try to read map.fullPanel blindly

It is only defined when user has write permissions.
This commit is contained in:
Yohan Boniface 2024-07-10 10:32:25 +02:00
parent f1c34f9d27
commit 2f8cda83b6

View file

@ -107,7 +107,7 @@ export default class Browser {
this.map.eachBrowsableDataLayer((datalayer) => { this.map.eachBrowsableDataLayer((datalayer) => {
datalayer.resetLayer(true) datalayer.resetLayer(true)
this.updateDatalayer(datalayer) this.updateDatalayer(datalayer)
if (this.map.fullPanel.isOpen()) datalayer.tableEdit() if (this.map.fullPanel?.isOpen()) datalayer.tableEdit()
}) })
this.toggleBadge() this.toggleBadge()
} }