From 3f0e99111284c10862c3e75f5035601da0c1d54c Mon Sep 17 00:00:00 2001 From: zhaoying Date: Mon, 16 Mar 2026 18:57:54 +0800 Subject: [PATCH] fix(web): if-else & question-classifier edge label bugfix --- web/src/views/Workflow/hooks/useWorkflowGraph.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/web/src/views/Workflow/hooks/useWorkflowGraph.ts b/web/src/views/Workflow/hooks/useWorkflowGraph.ts index 4bdf49b9..c647358c 100644 --- a/web/src/views/Workflow/hooks/useWorkflowGraph.ts +++ b/web/src/views/Workflow/hooks/useWorkflowGraph.ts @@ -2,7 +2,7 @@ * @Author: ZhaoYing * @Date: 2026-02-03 15:17:48 * @Last Modified by: ZhaoYing - * @Last Modified time: 2026-03-16 16:11:01 + * @Last Modified time: 2026-03-16 18:56:30 */ import { useRef, useEffect, useState } from 'react'; import { useParams } from 'react-router-dom'; @@ -222,7 +222,7 @@ export const useWorkflowGraph = ({ for (let i = 0; i < totalPorts; i++) { portItems.push({ group: 'right', - id: `CASE${i + 1}`, + id: `CASE${i}`, args: { x: nodeWidth, y: 30 * i + 42, @@ -253,7 +253,7 @@ export const useWorkflowGraph = ({ config.categories.forEach((_category: any, index: number) => { portItems.push({ group: 'right', - id: `CASE${index + 1}`, + id: `CASE${index}`, args: { x: nodeWidth, y: 30 * index + 42,