From c853cbcf58911a8cfbba9fa020d98f32c2dab5b6 Mon Sep 17 00:00:00 2001 From: Yohan Boniface Date: Wed, 13 Nov 2024 16:12:27 +0100 Subject: [PATCH] chore: fix tests --- umap/static/umap/js/modules/data/layer.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/umap/static/umap/js/modules/data/layer.js b/umap/static/umap/js/modules/data/layer.js index 4ab88f365..0ae10bfab 100644 --- a/umap/static/umap/js/modules/data/layer.js +++ b/umap/static/umap/js/modules/data/layer.js @@ -1080,14 +1080,14 @@ export class DataLayer extends ServerStored { formData.append('geojson', blob) console.log( 'map_id', - this.map.options.umap_id, + this._umap.properties.umap_id, 'pk', this.umap_id || this._future_uuid, 'created', this.createdOnServer ) - const saveURL = this._map.urls.get('datalayer_save', { - map_id: this._map.properties.umap_id, + const saveURL = this._umap.urls.get('datalayer_save', { + map_id: this._umap.properties.umap_id, pk: this.umap_id || this._future_uuid, created: this.createdOnServer, })