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