From 2b9918a42a0ee9d9b6d42d391d220537ef9cc122 Mon Sep 17 00:00:00 2001 From: 1AhmedYasser <26207361+1AhmedYasser@users.noreply.github.com> Date: Fri, 22 May 2026 10:47:18 +0300 Subject: [PATCH] fix(982): Fix conflicting mcq in insert node --- GUI/src/hooks/flow/useEdgeAdd.ts | 9 --------- 1 file changed, 9 deletions(-) diff --git a/GUI/src/hooks/flow/useEdgeAdd.ts b/GUI/src/hooks/flow/useEdgeAdd.ts index bb5c6794b..099597533 100644 --- a/GUI/src/hooks/flow/useEdgeAdd.ts +++ b/GUI/src/hooks/flow/useEdgeAdd.ts @@ -18,14 +18,6 @@ function useEdgeAdd(id: string) { const newNodeId = generateUniqueId(); - const defaultMcqButtons = [ - { id: '1', title: 'Jah', payload: '' }, - { id: '2', title: 'Ei', payload: '' }, - ]; - - const multiChoiceQuestion = - stepType === StepType.MultiChoiceQuestion ? { question: '', buttons: defaultMcqButtons } : undefined; - const insertNode = { id: newNodeId, position: { x: targetNode.position.x, y: targetNode.position.y }, @@ -39,7 +31,6 @@ function useEdgeAdd(id: string) { stepType: stepType, readonly: [StepType.Auth, StepType.FinishingStepEnd, StepType.FinishingStepRedirect].includes(stepType), endpoint: step.data, - multiChoiceQuestion, setClickedNode: useServiceStore.getState().setClickedNode, }, className: (() => {