Skip to content

Commit

Permalink
Merge pull request #37589 from tienifr/fix/35963
Browse files Browse the repository at this point in the history
Fix: Current report does not show in LHN under workspace filter
  • Loading branch information
madmax330 authored Mar 4, 2024
2 parents fd39e35 + 5312bca commit 3aeeda5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/libs/SidebarUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,9 @@ function getOrderedReportIDs(
const archivedReports: Report[] = [];

if (currentPolicyID || policyMemberAccountIDs.length > 0) {
reportsToDisplay = reportsToDisplay.filter((report) => ReportUtils.doesReportBelongToWorkspace(report, policyMemberAccountIDs, currentPolicyID));
reportsToDisplay = reportsToDisplay.filter(
(report) => report.reportID === currentReportId || ReportUtils.doesReportBelongToWorkspace(report, policyMemberAccountIDs, currentPolicyID),
);
}
// There are a few properties that need to be calculated for the report which are used when sorting reports.
reportsToDisplay.forEach((report) => {
Expand Down

0 comments on commit 3aeeda5

Please sign in to comment.