Skip to content

[$250] RHP closes unexpectedly when navigating between expense reports using prev/next arrows #87784

@Julesssss

Description

@Julesssss

Connection/timing

Discovered during review of #86238 but reproduces on staging independently of those changes.

Description

When viewing an expense report opened from search results, rapidly clicking the prev/next navigation arrows causes the RHP to dismiss unexpectedly. The panel closes as if the report was deleted, even though the user is simply navigating to the next report in the list.

Steps to reproduce

  1. Run a search filtered to Expense Reports with several results
  2. Open one of the expense reports (RHP opens)
  3. Rapidly click the next (or prev) arrow multiple times

Expected behavior

The RHP stays open and displays each successive report.

Actual behavior

The RHP closes mid-navigation, returning the user to the search results list.

Root cause (high level)

SearchMoneyRequestReportPage has a removal-detection effect that dismisses the modal when the report becomes undefined while the previous report was a money request report. During arrow navigation, the route params update before Onyx resolves the new report data, creating a brief window where the report is undefined — which the effect misinterprets as a deletion.

Platform

Reproduces on web (staging). Likely affects all platforms.

Issue OwnerCurrent Issue Owner: @aimane-chnaif
Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~022043758139918298894
  • Upwork Job ID: 2043758139918298894
  • Last Price Increase: 2026-04-13

Metadata

Metadata

Labels

BugSomething is broken. Auto assigns a BugZero manager.InternalRequires API changes or must be handled by Expensify staffReviewingHas a PR in reviewWeeklyKSv2

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions