From a1ea256e797b23a57be13adf998e4f3eee380ef4 Mon Sep 17 00:00:00 2001 From: Joel Date: Wed, 22 Oct 2025 11:36:01 +0800 Subject: [PATCH] fix: global icon in inspect --- .../nodes/_base/components/variable/variable-label/hooks.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/web/app/components/workflow/nodes/_base/components/variable/variable-label/hooks.ts b/web/app/components/workflow/nodes/_base/components/variable/variable-label/hooks.ts index dde878dce8..bb388d429a 100644 --- a/web/app/components/workflow/nodes/_base/components/variable/variable-label/hooks.ts +++ b/web/app/components/workflow/nodes/_base/components/variable/variable-label/hooks.ts @@ -26,7 +26,7 @@ export const useVarIcon = (variables: string[], variableCategory?: VarInInspectT if (isConversationVar(variables) || variableCategory === VarInInspectType.conversation || variableCategory === 'conversation') return BubbleX - if (isGlobalVar(variables)) + if (isGlobalVar(variables) || variableCategory === VarInInspectType.system) return GlobalVariable return Variable02 @@ -46,7 +46,7 @@ export const useVarColor = (variables: string[], isExceptionVariable?: boolean, if (isConversationVar(variables) || variableCategory === VarInInspectType.conversation || variableCategory === 'conversation') return 'text-util-colors-teal-teal-700' - if (isGlobalVar(variables)) + if (isGlobalVar(variables) || variableCategory === VarInInspectType.system) return 'text-util-colors-orange-orange-600' return 'text-text-accent'