Skip to content

Commit 74e1436

Browse files
authored
Merge pull request Expensify#64720 from truph01/fix/64363
fix: deleted workspace remains displayed in LHN
2 parents d719349 + d133b6a commit 74e1436

1 file changed

Lines changed: 1 addition & 7 deletions

File tree

src/libs/SidebarUtils.ts

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -238,13 +238,7 @@ function shouldDisplayReportInLHN(
238238
const isSystemChat = isSystemChatUtil(report);
239239
const isReportArchived = isArchivedReport(reportNameValuePairs);
240240
const shouldOverrideHidden =
241-
hasValidDraftComment(report.reportID) ||
242-
hasErrorsOtherThanFailedReceipt ||
243-
isFocused ||
244-
isSystemChat ||
245-
!!report.isPinned ||
246-
(!isInFocusMode && isReportArchived) ||
247-
reportAttributes?.[report?.reportID]?.requiresAttention;
241+
hasValidDraftComment(report.reportID) || hasErrorsOtherThanFailedReceipt || isFocused || isSystemChat || !!report.isPinned || reportAttributes?.[report?.reportID]?.requiresAttention;
248242

249243
if (isHidden && !shouldOverrideHidden) {
250244
return {shouldDisplay: false};

0 commit comments

Comments
 (0)