From 7a443d01763c39220c94494a65da1fb1da858212 Mon Sep 17 00:00:00 2001 From: Lake Mossman Date: Wed, 9 Feb 2022 14:51:12 -0800 Subject: [PATCH] fix partial success check (#10233) --- airbyte-webapp/src/components/JobItem/JobItem.tsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/airbyte-webapp/src/components/JobItem/JobItem.tsx b/airbyte-webapp/src/components/JobItem/JobItem.tsx index bd1d91d3c54a..9c7d8a542b00 100644 --- a/airbyte-webapp/src/components/JobItem/JobItem.tsx +++ b/airbyte-webapp/src/components/JobItem/JobItem.tsx @@ -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