fix wrong category mapping

This commit is contained in:
Athou
2025-05-01 13:01:25 +02:00
parent 9288a7e66e
commit 40461ac883

View File

@@ -30,9 +30,9 @@ export function CategoryDetailsPage() {
let category: Category | undefined
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) {
category = { ...Constants.categories.all, name: _(msg`Starred`) }
category = { ...Constants.categories.starred, name: _(msg`Starred`) }
} else {
category = query.result && flattenCategoryTree(query.result.data).find(c => c.id === id)
}