fix: do not unset map dirty status if it has not yet been saved once (#2382)

This commit is contained in:
Yohan Boniface 2024-12-18 11:45:43 +01:00 committed by GitHub
commit 631e3a7fd3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1117,8 +1117,8 @@ export default class Umap extends ServerStored {
}
this.ensurePanesOrder()
this._leafletMap.initTileLayers()
this.isDirty = false
this.onDataLayersChanged()
this.isDirty = !this.id
}
async save() {