From 2c4ea612a7eb38c3d53da32e3ec94e2c7b5ae792 Mon Sep 17 00:00:00 2001 From: Joel Date: Thu, 22 May 2025 14:25:58 +0800 Subject: [PATCH] fix: last run timing --- .../nodes/_base/components/workflow-panel/last-run/index.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 0ef37b7bf1..d2c6e488f4 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 @@ -30,9 +30,9 @@ const LastRun: FC = ({ ...otherResultPanelProps }) => { const isRunning = oneStepRunRunningStatus === NodeRunningStatus.Running - const isOneStepRunSuccess = oneStepRunRunningStatus === NodeRunningStatus.Succeeded + // const isOneStepRunSuccess = oneStepRunRunningStatus === NodeRunningStatus.Succeeded const isOneStepRunFailed = oneStepRunRunningStatus === NodeRunningStatus.Failed - const { data: lastRunResult, isFetching } = useLastRun(appId, nodeId, isOneStepRunSuccess) + const { data: lastRunResult, isFetching } = useLastRun(appId, nodeId, !isOneStepRunFailed) const runResult = (isOneStepRunFailed ? singleRunResult : lastRunResult) || {} if (isFetching) {