Skip to content

Commit 651e5f6

Browse files
committed
fix: remove call to getReportNameValuePairs() in method reasonForReportToBeInOptionList
1 parent 60677bc commit 651e5f6

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/libs/ReportUtils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8310,7 +8310,7 @@ function reasonForReportToBeInOptionList({
83108310
// Archived reports should always be shown when in default (most recent) mode. This is because you should still be able to access and search for the chats to find them.
83118311
// This will get removed as part of https://github.com/Expensify/App/issues/59961
83128312
// eslint-disable-next-line deprecation/deprecation
8313-
if (isInDefaultMode && isArchivedNonExpenseReport(report, !!getReportNameValuePairs(report?.reportID)?.private_isArchived)) {
8313+
if (isInDefaultMode && isArchivedNonExpenseReport(report, isReportArchived)) {
83148314
return CONST.REPORT_IN_LHN_REASONS.IS_ARCHIVED;
83158315
}
83168316

0 commit comments

Comments
 (0)