Merge pull request #1760 from umap-project/fix-esc-fragment

fix: do not try to close editPanel if not set
This commit is contained in:
Yohan Boniface 2024-04-17 15:10:12 +02:00 committed by GitHub
commit ba72f59624
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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()
}
}