errors in the summary row should be counting last_finished_status as reflected in the per connector rows (#3484)

Co-authored-by: Richard Kuo (Danswer) <rkuo@onyx.app>
This commit is contained in:
rkuo-danswer 2024-12-16 12:53:19 -08:00 committed by GitHub
parent 788b3015bc
commit dd0c4b64df
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -326,8 +326,9 @@ export function CCPairIndexingStatusTable({
(sum, status) => sum + status.docs_indexed,
0
),
errors: statuses.filter((status) => status.last_status === "failed")
.length,
errors: statuses.filter(
(status) => status.last_finished_status === "failed"
).length,
};
});