We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents d4645bf + 8a6962b commit efba564Copy full SHA for efba564
1 file changed
src/libs/SidebarUtils.ts
@@ -349,11 +349,11 @@ function categorizeReportsForLHN(
349
350
const isPinned = !!report.isPinned;
351
const requiresAttention = !!reportAttributes?.[reportID]?.requiresAttention;
352
- const hasErrors = !!report.hasErrorsOtherThanFailedReceipt;
353
const hasDraft = reportID ? hasValidDraftComment(reportID) : false;
354
const reportNameValuePairsKey = `${ONYXKEYS.COLLECTION.REPORT_NAME_VALUE_PAIRS}${reportID}`;
355
const rNVPs = reportNameValuePairs?.[reportNameValuePairsKey];
356
const isArchived = isArchivedNonExpenseReport(report, !!rNVPs?.private_isArchived);
+ const hasErrors = !!report.hasErrorsOtherThanFailedReceipt && !isArchived;
357
358
precomputedReports.push({
359
miniReport,
0 commit comments