From 90e68b7bbf5b018dace256f53b344408c5d97354 Mon Sep 17 00:00:00 2001 From: Gwendolyn Date: Fri, 20 Dec 2024 11:11:05 +0100 Subject: [PATCH] oops --- src/c3nav/editor/static/editor/js/editor.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/c3nav/editor/static/editor/js/editor.js b/src/c3nav/editor/static/editor/js/editor.js index e33bf761..81301296 100644 --- a/src/c3nav/editor/static/editor/js/editor.js +++ b/src/c3nav/editor/static/editor/js/editor.js @@ -1327,7 +1327,7 @@ editor = { editor.map.doubleClickZoom.disable(); }, - _current_editing_shape: [], + _current_editing_shape: null, // edit and create geometries _check_start_editing: function () { // called on sidebar load. start editing or creating depending on how the sidebar may require it @@ -1449,7 +1449,7 @@ editor = { layer = L.circle(layer._latlng, layer.options); layer.setRadius(0.15); e.layer.remove(); - editor._current_editing_shapes = [layer]; + editor._current_editing_shape = layer; } editor._editing_layer = layer; editor._editing_layer.addTo(editor._geometries_layer);