Move search type path part computation into searchStore #597
Labels
💻 aspect: code
Concerns the software code in the repository
🧰 goal: internal improvement
Improvement that benefits maintainers, not users
good first issue
New-contributor friendly
help wanted
Open to participation from the community
🟩 priority: low
Low priority and doesn't need to be rushed
Problem
We evaluate the current pattern in a few places to build the frontend search path:
searchType.value === ALL_MEDIA ? '' : searchType.value
.Description
We could just move this into the search store to prevent having to evaluate this in several different places.
Depends on the search store being merged in WordPress/openverse-frontend#1040
Implementation
The text was updated successfully, but these errors were encountered: