This commit is contained in:
parent
a1833a0955
commit
2c290f2a85
1 changed files with 1 additions and 1 deletions
|
@ -5,7 +5,7 @@ export async function load({ params }) {
|
|||
const categories: App.Category[] = await getRouteCategories();
|
||||
const categoryId = Number(params.slug);
|
||||
|
||||
const category: App.Category = categories.find(c => c.id === categoryId);
|
||||
const category: App.Category = categories.find(c => c.id === categoryId) as App.Category;
|
||||
|
||||
if (!category) {
|
||||
error(404);
|
||||
|
|
Loading…
Reference in a new issue