From 325a860fee219d7850bb79611af0061879663ea7 Mon Sep 17 00:00:00 2001 From: mlogclub Date: Sun, 28 Jun 2026 10:05:58 +0800 Subject: [PATCH] feat: enhance condition node form to improve branch display with updated labels and styling --- .../_components/flowgram-node-registries.tsx | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/web/app/dashboard/ai-workflows/_components/flowgram-node-registries.tsx b/web/app/dashboard/ai-workflows/_components/flowgram-node-registries.tsx index 743317c..621c384 100644 --- a/web/app/dashboard/ai-workflows/_components/flowgram-node-registries.tsx +++ b/web/app/dashboard/ai-workflows/_components/flowgram-node-registries.tsx @@ -103,19 +103,17 @@ function ConditionNodeForm({ fallbackTitle }: { fallbackTitle: string }) { return (
- {branches.map((branch) => ( + {branches.map((branch, index) => (
{branch.name || (branch.default ? "默认分支" : branch.id)} - {branch.default ? ( - - else - - ) : null} + + {branch.default ? "else" : index === 0 ? "if" : "elseif"} +