From e6001c259b1cb9c7313fbacc686092561d7f6bfb Mon Sep 17 00:00:00 2001 From: Joel Date: Tue, 29 Apr 2025 14:45:25 +0800 Subject: [PATCH] fix: fetch var type error --- web/app/components/workflow/hooks/use-inspect-vars-crud.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/web/app/components/workflow/hooks/use-inspect-vars-crud.ts b/web/app/components/workflow/hooks/use-inspect-vars-crud.ts index 2396b2b283..5b79d03683 100644 --- a/web/app/components/workflow/hooks/use-inspect-vars-crud.ts +++ b/web/app/components/workflow/hooks/use-inspect-vars-crud.ts @@ -45,8 +45,8 @@ const useInspectVarsCrud = () => { const fetchInspectVarValue = async (selector: ValueSelector) => { const nodeId = selector[0] - const isSystemVar = selector[1] === 'sys' - const isConversationVar = selector[1] === 'conversation' + const isSystemVar = nodeId === 'sys' + const isConversationVar = nodeId === 'conversation' console.log(nodeId, isSystemVar, isConversationVar) if (isSystemVar) { invalidateSysVarValues()