From f598c4674df5a5ef9e70b25051576d74228f1970 Mon Sep 17 00:00:00 2001 From: David Larlet Date: Tue, 25 Jun 2024 17:02:32 -0400 Subject: [PATCH] chore: fix Biome no-delete rule with comments --- umap/static/umap/js/umap.features.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/umap/static/umap/js/umap.features.js b/umap/static/umap/js/umap.features.js index b3b55775..628ef6dc 100644 --- a/umap/static/umap/js/umap.features.js +++ b/umap/static/umap/js/umap.features.js @@ -400,7 +400,7 @@ U.FeatureMixin = { const properties = L.extend({}, this.properties) properties._umap_options = L.extend({}, properties._umap_options) if (Object.keys && Object.keys(properties._umap_options).length === 0) { - properties._umap_options // It can make a difference on big data sets = undefined // It can make a difference on big data sets + properties._umap_options = undefined // It can make a difference on big data sets } return properties }, @@ -1178,7 +1178,7 @@ U.Polyline = L.Polyline.extend({ U.Utils.flattenCoordinates(geojson.geometry.coordinates), ] - geojson.id // delete the copied id, a new one will be generated. = undefined // delete the copied id, a new one will be generated. + geojson.id = undefined // delete the copied id, a new one will be generated. const polygon = this.datalayer.geojsonToFeatures(geojson) polygon.edit()