Skip to content

Commit 7a443d0

Browse files
authored
fix partial success check (#10233)
1 parent c61b8c2 commit 7a443d0

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

airbyte-webapp/src/components/JobItem/JobItem.tsx

+4-1
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,10 @@ const JobCurrentLogs: React.FC<{
4646
};
4747

4848
const isPartialSuccessCheck = (attempts: Attempt[]) => {
49-
if (attempts[attempts.length - 1].status === Status.FAILED) {
49+
if (
50+
attempts.length > 0 &&
51+
attempts[attempts.length - 1].status === Status.FAILED
52+
) {
5053
return attempts.some(
5154
(attempt) =>
5255
attempt.failureSummary && attempt.failureSummary.partialSuccess

0 commit comments

Comments
 (0)