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.
1 parent e6324c3 commit 97b16b3Copy full SHA for 97b16b3
1 file changed
src/libs/SidebarUtils.ts
@@ -350,10 +350,10 @@ function categorizeReportsForLHN(
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 hasDraft = reportID && !isArchived ? hasValidDraftComment(reportID) : false;
357
358
precomputedReports.push({
359
miniReport,
0 commit comments