Skip to content

Commit

Permalink
fix partial success check (#10233)
Browse files Browse the repository at this point in the history
  • Loading branch information
lmossman authored Feb 9, 2022
1 parent c61b8c2 commit 7a443d0
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion airbyte-webapp/src/components/JobItem/JobItem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,10 @@ const JobCurrentLogs: React.FC<{
};

const isPartialSuccessCheck = (attempts: Attempt[]) => {
if (attempts[attempts.length - 1].status === Status.FAILED) {
if (
attempts.length > 0 &&
attempts[attempts.length - 1].status === Status.FAILED
) {
return attempts.some(
(attempt) =>
attempt.failureSummary && attempt.failureSummary.partialSuccess
Expand Down

0 comments on commit 7a443d0

Please sign in to comment.