mirror of
https://github.com/ThatGuySam/doesitarm.git
synced 2026-05-15 06:35:20 -07:00
Rename to getKindToCategorySlug
This commit is contained in:
parent
9772fea4ed
commit
548dff3659
1 changed files with 2 additions and 2 deletions
|
|
@ -215,8 +215,8 @@ export function getCategoryKindName ( categorySlug ) {
|
|||
return categoryToKind[ categorySlug ]
|
||||
}
|
||||
|
||||
export function getKindToCategory ( kindSlug ) {
|
||||
return Object.keys( categories ).find( key => categoryToKind[ key ] === kind )
|
||||
export function getKindToCategorySlug ( kindSlug ) {
|
||||
return Object.keys( categories ).find( key => categoryToKind[ key ] === kindSlug )
|
||||
}
|
||||
|
||||
export const categoriesById = Object.fromEntries( Object.entries( categories ).map( ([ key, category ]) => [category.id, { ...category, key } ] ) )
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue