From 1f24977f26c54d1d85de692daff8c8719c85c6b3 Mon Sep 17 00:00:00 2001 From: janis steiner Date: Thu, 7 May 2026 19:28:38 +0200 Subject: [PATCH] fix deletion of shapes --- frontend/assets/js/app.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/frontend/assets/js/app.js b/frontend/assets/js/app.js index 25e64e9..053c35b 100644 --- a/frontend/assets/js/app.js +++ b/frontend/assets/js/app.js @@ -313,6 +313,7 @@ function selectNode(id, add = false) { function selectShape(id) { selectedShapeId = id; selectedNodeId = null; + selectedNodeIds = []; renderNodeList(); renderShapeList(); renderNetwork(); @@ -691,7 +692,7 @@ function onMouseDown(e) { const shape = getShapeAt(mx, my); if (shape) { - selectedNodeId = null; selectedShapeId = shape.id; + selectedNodeId = null; selectedNodeIds = []; selectedShapeId = shape.id; dragType = 'shape'; dragTarget = shape; dragOffX = mx - shape.x; dragOffY = my - shape.y; renderNodeList(); renderShapeList();