From 42258bf4516b6a9ff27ece36471457a053d591d1 Mon Sep 17 00:00:00 2001 From: Joel Date: Wed, 20 Aug 2025 16:24:53 +0800 Subject: [PATCH] chore: node tracing node value --- .../workflow/nodes/_base/components/workflow-panel/index.tsx | 2 +- .../nodes/_base/components/workflow-panel/last-run/index.tsx | 4 +--- .../_base/components/workflow-panel/last-run/use-last-run.ts | 3 +-- 3 files changed, 3 insertions(+), 6 deletions(-) diff --git a/web/app/components/workflow/nodes/_base/components/workflow-panel/index.tsx b/web/app/components/workflow/nodes/_base/components/workflow-panel/index.tsx index 4723b2dce7..f79e251eab 100644 --- a/web/app/components/workflow/nodes/_base/components/workflow-panel/index.tsx +++ b/web/app/components/workflow/nodes/_base/components/workflow-panel/index.tsx @@ -477,7 +477,7 @@ const BasePanel: FC = ({ isRunAfterSingleRun={isRunAfterSingleRun} updateNodeRunningStatus={updateNodeRunningStatus} onSingleRunClicked={handleSingleRun} - nodeInfo={nodeInfo} + nodeInfo={nodeInfo!} singleRunResult={runResult!} isPaused={isPaused} {...passedLogParams} diff --git a/web/app/components/workflow/nodes/_base/components/workflow-panel/last-run/index.tsx b/web/app/components/workflow/nodes/_base/components/workflow-panel/last-run/index.tsx index a029987818..2ff474c0bc 100644 --- a/web/app/components/workflow/nodes/_base/components/workflow-panel/last-run/index.tsx +++ b/web/app/components/workflow/nodes/_base/components/workflow-panel/last-run/index.tsx @@ -67,7 +67,6 @@ const LastRun: FC = ({ updateNodeRunningStatus(hidePageOneStepFinishedStatus) resetHidePageStatus() } - // eslint-disable-next-line react-hooks/exhaustive-deps }, [isOneStepRunSucceed, isOneStepRunFailed, oneStepRunRunningStatus]) useEffect(() => { @@ -77,7 +76,6 @@ const LastRun: FC = ({ useEffect(() => { resetHidePageStatus() - // eslint-disable-next-line react-hooks/exhaustive-deps }, [nodeId]) const handlePageVisibilityChange = useCallback(() => { @@ -117,7 +115,7 @@ const LastRun: FC = ({ status={isPaused ? NodeRunningStatus.Stopped : ((runResult as any).status || otherResultPanelProps.status)} total_tokens={(runResult as any)?.execution_metadata?.total_tokens || otherResultPanelProps?.total_tokens} created_by={(runResult as any)?.created_by_account?.created_by || otherResultPanelProps?.created_by} - nodeInfo={nodeInfo} + nodeInfo={runResult as NodeTracing} showSteps={false} /> diff --git a/web/app/components/workflow/nodes/_base/components/workflow-panel/last-run/use-last-run.ts b/web/app/components/workflow/nodes/_base/components/workflow-panel/last-run/use-last-run.ts index 014707cdfb..cc588b5628 100644 --- a/web/app/components/workflow/nodes/_base/components/workflow-panel/last-run/use-last-run.ts +++ b/web/app/components/workflow/nodes/_base/components/workflow-panel/last-run/use-last-run.ts @@ -146,8 +146,8 @@ const useLastRun = ({ checkValid, } = oneStepRunRes + const nodeInfo = runResult const { - nodeInfo, ...singleRunParams } = useSingleRunFormParamsHooks(blockType)({ id, @@ -197,7 +197,6 @@ const useLastRun = ({ setTabType(TabType.lastRun) setInitShowLastRunTab(false) - // eslint-disable-next-line react-hooks/exhaustive-deps }, [initShowLastRunTab]) const invalidLastRun = useInvalidLastRun(appId!, id)