From f3a5d93d10d70738e35d5168514a7f12a21148f0 Mon Sep 17 00:00:00 2001 From: Joel Date: Fri, 6 Jun 2025 14:53:10 +0800 Subject: [PATCH] fix: running while has value both show icons --- web/app/components/workflow/nodes/_base/node.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/web/app/components/workflow/nodes/_base/node.tsx b/web/app/components/workflow/nodes/_base/node.tsx index d34f0609b4..27d6adc62b 100644 --- a/web/app/components/workflow/nodes/_base/node.tsx +++ b/web/app/components/workflow/nodes/_base/node.tsx @@ -91,7 +91,7 @@ const BaseNode: FC = ({ }, [data.isInLoop, data.selected, id, handleNodeLoopChildSizeChange]) const { hasNodeInspectVars } = useInspectVarsCrud() - // window.nodesWithInspectVars = nodesWithInspectVars + const isLoading = data._runningStatus === NodeRunningStatus.Running || data._singleRunningStatus === NodeRunningStatus.Running const hasVarValue = hasNodeInspectVars(id) const showSelectedBorder = data.selected || data._isBundled || data._isEntering const { @@ -264,12 +264,12 @@ const BaseNode: FC = ({ data.type === BlockEnum.Loop && data._loopIndex && LoopIndex } { - (data._runningStatus === NodeRunningStatus.Running || data._singleRunningStatus === NodeRunningStatus.Running) && ( + isLoading && ( ) } { - (data._runningStatus === NodeRunningStatus.Succeeded || hasVarValue) && ( + (!isLoading && (data._runningStatus === NodeRunningStatus.Succeeded || hasVarValue)) && ( ) }