|
|
|
@ -32,7 +32,8 @@ const LastRun: FC<Props> = ({
|
|
|
|
...otherResultPanelProps
|
|
|
|
...otherResultPanelProps
|
|
|
|
}) => {
|
|
|
|
}) => {
|
|
|
|
const isOneStepRunSucceed = oneStepRunRunningStatus === NodeRunningStatus.Succeeded
|
|
|
|
const isOneStepRunSucceed = oneStepRunRunningStatus === NodeRunningStatus.Succeeded
|
|
|
|
const canRunLastRun = !isRunAfterSingleRun || isOneStepRunSucceed
|
|
|
|
const isOneStepRunFailed = oneStepRunRunningStatus === NodeRunningStatus.Failed
|
|
|
|
|
|
|
|
const canRunLastRun = !isRunAfterSingleRun || isOneStepRunSucceed || isOneStepRunFailed
|
|
|
|
const { data: lastRunResult, isFetching, error } = useLastRun(appId, nodeId, canRunLastRun)
|
|
|
|
const { data: lastRunResult, isFetching, error } = useLastRun(appId, nodeId, canRunLastRun)
|
|
|
|
const isRunning = useMemo(() => {
|
|
|
|
const isRunning = useMemo(() => {
|
|
|
|
if(!isRunAfterSingleRun)
|
|
|
|
if(!isRunAfterSingleRun)
|
|
|
|
|