From d00b4e1da9b9e91ac5ff6bc42582d1a375a93ef9 Mon Sep 17 00:00:00 2001 From: Yohan Boniface Date: Wed, 18 Dec 2024 11:34:17 +0100 Subject: [PATCH] fix: do not unset map dirty status if it has not yet been saved once --- umap/static/umap/js/modules/umap.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/umap/static/umap/js/modules/umap.js b/umap/static/umap/js/modules/umap.js index dc90c3c8..258b45db 100644 --- a/umap/static/umap/js/modules/umap.js +++ b/umap/static/umap/js/modules/umap.js @@ -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() {