mirror of
https://github.com/ThatGuySam/doesitarm.git
synced 2026-05-18 06:44:46 -07:00
Add makeCategoryFilterFromCategorySlug helper
This commit is contained in:
parent
8ed94351ca
commit
4f5b7e7cbf
1 changed files with 5 additions and 0 deletions
|
|
@ -250,6 +250,11 @@ export function makeCategoryFilterFromListing ( listing ) {
|
|||
return `${ categoryFilterPrefix }${ getAppCategory( listing ).snakeSlug }`
|
||||
}
|
||||
|
||||
export function makeCategoryFilterFromCategorySlug ( categorySlug ) {
|
||||
const category = categories[ categorySlug ]
|
||||
return `${ categoryFilterPrefix }${ category.snakeSlug }`
|
||||
}
|
||||
|
||||
export function findCategoryForTagsSet ( tags ) {
|
||||
|
||||
for ( const tag of tags ) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue