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: 0 additions & 1 deletion src/libs/SearchUIUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -827,7 +827,6 @@ function getSuggestedSearches(
type: CONST.SEARCH.DATA_TYPES.EXPENSE_REPORT,
action: CONST.SEARCH.ACTION_FILTERS.EXPORT,
exporter: [`${accountID}`],

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Preserve Export to-do hash matching

When the For You section has multiple export todos, it still navigates with exportedOn: never (src/pages/home/ForYouSection/index.tsx:103-106). SearchQueryProvider identifies the active suggested search by comparing similarSearchHash against getSuggestedSearches, so after this removal the sidebar Export query no longer includes the exported filter but the For You route still does. That leaves currentSearchKey undefined for the For You Export search, so it won't use live to-do data and export actions won't receive EXPORT for the optimistic removal path. Please update the For You export query at the same time or keep the suggested search filter consistent.

Useful? React with 👍 / 👎.

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.

That place doesn't filter by action, so I think it is a difference case.

exportedOn: CONST.SEARCH.DATE_PRESETS.NEVER,
}),
get searchQueryJSON() {
return buildSearchQueryJSON(this.searchQuery);
Expand Down
Loading