Skip to content

Commit d133b6a

Browse files
committed
fix: deleted workspace remains displayed in LHN
1 parent b8ef627 commit d133b6a

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
@@ -239,13 +239,7 @@ function shouldDisplayReportInLHN(
239239
const isSystemChat = isSystemChatUtil(report);
240240
const isReportArchived = isArchivedReport(reportNameValuePairs);
241241
const shouldOverrideHidden =
242-
hasValidDraftComment(report.reportID) ||
243-
hasErrorsOtherThanFailedReceipt ||
244-
isFocused ||
245-
isSystemChat ||
246-
!!report.isPinned ||
247-
(!isInFocusMode && isReportArchived) ||
248-
reportAttributes?.[report?.reportID]?.requiresAttention;
242+
hasValidDraftComment(report.reportID) || hasErrorsOtherThanFailedReceipt || isFocused || isSystemChat || !!report.isPinned || reportAttributes?.[report?.reportID]?.requiresAttention;
249243

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

0 commit comments

Comments
 (0)