From 471abe1f1b6a075e4d689ea49e7c9ce72049d422 Mon Sep 17 00:00:00 2001 From: Yohan Boniface Date: Thu, 19 Dec 2024 13:24:42 +0100 Subject: [PATCH] chore: honour "sync" parameter in layer.setReferenceVersion --- umap/static/umap/js/modules/data/layer.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/umap/static/umap/js/modules/data/layer.js b/umap/static/umap/js/modules/data/layer.js index ec3d13ab..0529f627 100644 --- a/umap/static/umap/js/modules/data/layer.js +++ b/umap/static/umap/js/modules/data/layer.js @@ -1065,7 +1065,7 @@ export class DataLayer extends ServerStored { setReferenceVersion({ response, sync }) { this._referenceVersion = response.headers.get('X-Datalayer-Version') - this.sync.update('_referenceVersion', this._referenceVersion) + if (sync) this.sync.update('_referenceVersion', this._referenceVersion) } async save() {