Bump Leaflet to 1.9.4

Changelog:

https://github.com/Leaflet/Leaflet/blob/main/CHANGELOG.md

Sounds safe for us. Tested localy. Tests pass. Inch Allah.
This commit is contained in:
Yohan Boniface 2023-07-11 15:57:11 +02:00
parent 76f69d3172
commit 08fed332cb
2 changed files with 2 additions and 2 deletions

View file

@ -36,7 +36,7 @@
"csv2geojson": "5.1.1",
"dompurify": "^3.0.3",
"georsstogeojson": "^0.1.0",
"leaflet": "1.3.4",
"leaflet": "1.9.4",
"leaflet-contextmenu": "^1.4.0",
"leaflet-editable": "^1.2.0",
"leaflet-editinosm": "0.2.3",

View file

@ -1060,7 +1060,7 @@ L.U.DataLayer = L.Evented.extend({
},
isVisible: function () {
return this.map.hasLayer(this.layer)
return this.layer && this.map.hasLayer(this.layer)
},
canBrowse: function () {