From 7018fcbce0be9db310d17c40fe948aff597fcd15 Mon Sep 17 00:00:00 2001 From: Zackary Santana <64446617+ZackarySantana@users.noreply.github.com> Date: Fri, 23 Feb 2024 09:11:49 -0500 Subject: [PATCH] fix: switch status check to be not failed --- src/pages/task/actionButtons/relevantCommits/index.tsx | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/pages/task/actionButtons/relevantCommits/index.tsx b/src/pages/task/actionButtons/relevantCommits/index.tsx index 5e2404a786..a1ca72e888 100644 --- a/src/pages/task/actionButtons/relevantCommits/index.tsx +++ b/src/pages/task/actionButtons/relevantCommits/index.tsx @@ -21,7 +21,7 @@ import { CommitType } from "./types"; import { getLinks, getTaskFromMainlineCommitsQuery } from "./utils"; const { applyStrictRegex } = string; -const { isFinishedTaskStatus } = statuses; +const { isFailedTaskStatus, isFinishedTaskStatus } = statuses; interface RelevantCommitsProps { taskId: string; @@ -95,11 +95,7 @@ export const RelevantCommits: React.FC = ({ taskId }) => { LastMainlineCommitQuery, LastMainlineCommitQueryVariables >(LAST_MAINLINE_COMMIT, { - skip: - !parentTask || - !lastPassingTask || - status === undefined || - status === TaskStatus.Succeeded, + skip: !parentTask || !lastPassingTask || !isFailedTaskStatus(status), variables: { projectIdentifier, skipOrderNumber: passingOrderNumber + 2,