-
Notifications
You must be signed in to change notification settings - Fork 2.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Search - "No category" is no longer selected in Categories field after searching with filter #50989
Comments
Triggered auto assignment to @techievivek ( |
💬 A slack conversation has been started in #expensify-open-source |
Triggered auto assignment to @johncschuster ( |
👋 Friendly reminder that deploy blockers are time-sensitive ⏱ issues! Check out the open `StagingDeployCash` deploy checklist to see the list of PRs included in this release, then work quickly to do one of the following:
|
I believe this may be a bug after this PR: #50122 |
I think we can demote this for now as the impact is low. |
ProposalPlease re-state the problem that we are trying to solve in this issue."No category" is no longer selected in Categories field after searching with that filter. What is the root cause of that problem?In
This Onyx value is set when we open advanced search filters page: App/src/components/Search/SearchPageHeader.tsx Lines 329 to 334 in 987ff1b
In Lines 709 to 716 in 987ff1b
will return an empty array. This bug happens to What changes do you think we should make in order to solve the problem?Add a condition to include if (filters[filterKey]?.map((category) => category.value.toString()).includes(CONST.SEARCH.EMPTY_VALUE)) {
filtersForm[filterKey]?.push(CONST.SEARCH.EMPTY_VALUE);
} Do the same with Tags as well. What alternative solutions did you explore? (Optional) |
Hi! I can handle this in #50883. Fix requires minimal effort and I don't think it's worth opening another pr. |
I didn't noticed but pr adding |
Correct, the PR was reverted. Closing this issue. |
If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!
Version Number: 9.0.50-0
Reproducible in staging?: Y
Reproducible in production?: N/A - new feature, doesn't exist in prod
Issue was found when executing this PR: #50122
Email or phone of affected tester (no customers): applausetester+kh081006@applause.expensifail.com
Issue reported by: Applause Internal Team
Action Performed:
Expected Result:
"No category" will be displayed as selected in Categories field after searching with that filter.
Actual Result:
"No category" is no longer selected in Categories field after searching with that filter.
The same with
tags
filtersWorkaround:
Unknown
Platforms:
Screenshots/Videos
Bug6637286_1729142903137.20241017_132403.mp4
View all open jobs on GitHub
The text was updated successfully, but these errors were encountered: