From 25c310b57b7ceb2a2159c6f95c1a514cf6597030 Mon Sep 17 00:00:00 2001 From: Michel Roegl-Brunner <73236783+michelroegl-brunner@users.noreply.github.com> Date: Tue, 18 Mar 2025 11:39:10 +0100 Subject: [PATCH] Fix frontend (#3199) --- frontend/src/app/api/categories/route.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/app/api/categories/route.ts b/frontend/src/app/api/categories/route.ts index 4db931509..c7392a1e3 100644 --- a/frontend/src/app/api/categories/route.ts +++ b/frontend/src/app/api/categories/route.ts @@ -40,7 +40,7 @@ export async function GET() { const categories = metadata.categories .map((category) => { category.scripts = scripts.filter((script) => - script.categories.includes(category.id), + script.categories?.includes(category.id), ); return category; })