chore: biome

Co-authored-by: Alexis Métaireau <alexis@notmyidea.org>
This commit is contained in:
Yohan Boniface 2024-10-24 12:38:40 +02:00
parent 31c15e7387
commit 617c0cee56
4 changed files with 5 additions and 5 deletions

View file

@ -25,7 +25,7 @@ export default class URLs {
} }
// Update the layer if pk is passed, create otherwise. // 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) if (created) return this.get('datalayer_update', { map_id, pk }, ...options)
return this.get('datalayer_create', { map_id, pk }, ...options) return this.get('datalayer_create', { map_id, pk }, ...options)
} }

View file

@ -818,7 +818,7 @@ U.Map = L.Map.extend({
}, },
createDataLayer: function (options = {}, sync = true, future_uuid = undefined) { 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}` options.name = options.name || `${L._('Layer')} ${this.datalayers_index.length + 1}`
const datalayer = new U.DataLayer(this, options, sync, future_uuid) const datalayer = new U.DataLayer(this, options, sync, future_uuid)
@ -829,7 +829,7 @@ U.Map = L.Map.extend({
}, },
newDataLayer: function () { newDataLayer: function () {
const datalayer = this.createDataLayer({}, sync=true) const datalayer = this.createDataLayer({}, (sync = true))
datalayer.edit() datalayer.edit()
}, },