Skip to content

Commit

Permalink
GBR edge case fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ikevin127 committed Nov 14, 2024
1 parent 0b480b8 commit cc42915
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/libs/SidebarUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -127,8 +127,13 @@ function getOrderedReportIDs(
}
const isSystemChat = ReportUtils.isSystemChat(report);
const shouldOverrideHidden =
hasValidDraftComment(report.reportID) ||
hasErrorsOtherThanFailedReceipt ||
isFocused ||
isSystemChat ||
// eslint-disable-next-line @typescript-eslint/prefer-nullish-coalescing
hasValidDraftComment(report.reportID) || hasErrorsOtherThanFailedReceipt || isFocused || isSystemChat || report.isPinned;
report.isPinned ||
ReportUtils.requiresAttentionFromCurrentUser(report, parentReportAction);
if (isHidden && !shouldOverrideHidden) {
return;
}
Expand Down

0 comments on commit cc42915

Please sign in to comment.