From 608fd4b4de8f7f9e0ba9d0245c0135ad2547f1bc Mon Sep 17 00:00:00 2001 From: Joel Date: Tue, 25 Mar 2025 14:13:12 +0800 Subject: [PATCH] fix: readonly var show error --- .../_base/components/readonly-input-with-select-var.tsx | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/web/app/components/workflow/nodes/_base/components/readonly-input-with-select-var.tsx b/web/app/components/workflow/nodes/_base/components/readonly-input-with-select-var.tsx index 68deb9b480..3333d10c06 100644 --- a/web/app/components/workflow/nodes/_base/components/readonly-input-with-select-var.tsx +++ b/web/app/components/workflow/nodes/_base/components/readonly-input-with-select-var.tsx @@ -9,6 +9,7 @@ import { getNodeInfoById, isConversationVar, isENV, isSystemVar } from './variab import { Line3 } from '@/app/components/base/icons/src/public/common' import { Variable02 } from '@/app/components/base/icons/src/vender/solid/development' import { BubbleX, Env } from '@/app/components/base/icons/src/vender/line/others' +import { RiMoreLine } from '@remixicon/react' type Props = { nodeId: string value: string @@ -45,6 +46,7 @@ const ReadonlyInputWithSelectVar: FC = ({ const isChatVar = isConversationVar(value) const node = (isSystem ? startNode : getNodeInfoById(availableNodes, value[0]))?.data const varName = `${isSystem ? 'sys.' : ''}${value[value.length - 1]}` + const isShowAPart = value.length > 2 return ( {str} @@ -61,6 +63,12 @@ const ReadonlyInputWithSelectVar: FC = ({ )} + {isShowAPart && ( +
+ + +
+ )}
{!isEnv && !isChatVar && } {isEnv && }