From 617c0cee5608971a2af8e570f8cb4e37fb95edc1 Mon Sep 17 00:00:00 2001 From: Yohan Boniface Date: Thu, 24 Oct 2024 12:38:40 +0200 Subject: [PATCH] chore: biome MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Alexis Métaireau --- umap/static/umap/js/modules/schema.js | 2 +- umap/static/umap/js/modules/sync/updaters.js | 2 +- umap/static/umap/js/modules/urls.js | 2 +- umap/static/umap/js/umap.js | 4 ++-- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/umap/static/umap/js/modules/schema.js b/umap/static/umap/js/modules/schema.js index e4a93d40..efde6c8c 100644 --- a/umap/static/umap/js/modules/schema.js +++ b/umap/static/umap/js/modules/schema.js @@ -563,7 +563,7 @@ export const SCHEMA = { type: Object, impacts: ['data'], }, - + _reference_version: { type: Number, impacts: ['data'], diff --git a/umap/static/umap/js/modules/sync/updaters.js b/umap/static/umap/js/modules/sync/updaters.js index ac7740a0..7dd5da18 100644 --- a/umap/static/umap/js/modules/sync/updaters.js +++ b/umap/static/umap/js/modules/sync/updaters.js @@ -32,7 +32,7 @@ class BaseUpdater { } getDataLayerFromID(layerId, future_uuid) { - if (layerId) return this.map.getDataLayerByUmapId(layerId, future_uuid) + if (layerId) return this.map.getDataLayerByUmapId(layerId, future_uuid) return this.map.defaultEditDataLayer() } diff --git a/umap/static/umap/js/modules/urls.js b/umap/static/umap/js/modules/urls.js index 1fcb1542..0c44c516 100644 --- a/umap/static/umap/js/modules/urls.js +++ b/umap/static/umap/js/modules/urls.js @@ -25,7 +25,7 @@ export default class URLs { } // Update the layer if pk is passed, create otherwise. - datalayer_save({ map_id, pk, created}, ...options) { + datalayer_save({ map_id, pk, created }, ...options) { if (created) return this.get('datalayer_update', { map_id, pk }, ...options) return this.get('datalayer_create', { map_id, pk }, ...options) } diff --git a/umap/static/umap/js/umap.js b/umap/static/umap/js/umap.js index 01b7319e..e052596f 100644 --- a/umap/static/umap/js/umap.js +++ b/umap/static/umap/js/umap.js @@ -818,7 +818,7 @@ U.Map = L.Map.extend({ }, createDataLayer: function (options = {}, sync = true, future_uuid = undefined) { - console.log("Create Datalayer", options) + console.log('Create Datalayer', options) options.name = options.name || `${L._('Layer')} ${this.datalayers_index.length + 1}` const datalayer = new U.DataLayer(this, options, sync, future_uuid) @@ -829,7 +829,7 @@ U.Map = L.Map.extend({ }, newDataLayer: function () { - const datalayer = this.createDataLayer({}, sync=true) + const datalayer = this.createDataLayer({}, (sync = true)) datalayer.edit() },