From a0324479e6a1ba05aebbe2e964b5f8fc70bb5eec Mon Sep 17 00:00:00 2001 From: JGerla Date: Sat, 25 Oct 2025 18:41:57 +0200 Subject: [PATCH] refactor: removed start and end nodes from the addNode functionality as they are not supported for manual adding removed unnecessary code. BREAKING: end and start nodes are no longer supported by the dnd addNode functionality. ref: N25B-114 --- .../components/DragDropSidebar.tsx | 16 +--------------- 1 file changed, 1 insertion(+), 15 deletions(-) diff --git a/src/pages/VisProgPage/visualProgrammingUI/components/DragDropSidebar.tsx b/src/pages/VisProgPage/visualProgrammingUI/components/DragDropSidebar.tsx index 128aed1..5d626d3 100644 --- a/src/pages/VisProgPage/visualProgrammingUI/components/DragDropSidebar.tsx +++ b/src/pages/VisProgPage/visualProgrammingUI/components/DragDropSidebar.tsx @@ -80,23 +80,9 @@ function addNode(nodeType: string, position: XYPosition) { id: `phase-${phaseNumber}`, type: nodeType, position, - data: {label: `"new"`, number: phaseNumber}, + data: {label: 'new', number: phaseNumber}, }; } - case "start": - return { - id: getId(), - type: nodeType, - position, - data: {label: `new start node`}, - }; - case "end": - return { - id: getId(), - type: nodeType, - position, - data: {label: `new end node`}, - }; case "norm": { const normNumber = nds.filter((node) => node.type === 'norm').length;