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) {