Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/libs/SidebarUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -311,6 +311,7 @@ function updateReportsToDisplayInLHN({
for (const reportID of updatedReportsKeys) {
const report = reports?.[reportID];
if (!report?.reportID && report?.pendingFields?.reportID !== CONST.RED_BRICK_ROAD_PENDING_ACTION.DELETE) {
delete displayedReportsCopy[reportID];

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jnowakow Are you sure there were no other cases where we might want to still show the report in the LHN when this conditions runs? It sounds odd we would not be deleting the reports already

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I feel like it wouldn't make sense to display report that doesn't have reportID because we would not be able to navigate to it

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sure, though it is one of those things that sounds so obvious that I would like to know why we dont already do this 😂

continue;
}

Expand Down
Loading