mirror of
https://github.com/Athou/commafeed.git
synced 2026-03-21 21:37:29 +00:00
fix wrong category mapping
This commit is contained in:
@@ -30,9 +30,9 @@ export function CategoryDetailsPage() {
|
|||||||
|
|
||||||
let category: Category | undefined
|
let category: Category | undefined
|
||||||
if (id === Constants.categories.all.id) {
|
if (id === Constants.categories.all.id) {
|
||||||
category = { ...Constants.categories.starred, name: _(msg`All`) }
|
category = { ...Constants.categories.all, name: _(msg`All`) }
|
||||||
} else if (id === Constants.categories.starred.id) {
|
} else if (id === Constants.categories.starred.id) {
|
||||||
category = { ...Constants.categories.all, name: _(msg`Starred`) }
|
category = { ...Constants.categories.starred, name: _(msg`Starred`) }
|
||||||
} else {
|
} else {
|
||||||
category = query.result && flattenCategoryTree(query.result.data).find(c => c.id === id)
|
category = query.result && flattenCategoryTree(query.result.data).find(c => c.id === id)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user