From e8ff2858d6cc13c3ebbdec27f0f8230df5d3f50e Mon Sep 17 00:00:00 2001 From: Bram Suurd <78373894+BramSuurdje@users.noreply.github.com> Date: Wed, 6 Nov 2024 21:47:07 +0100 Subject: [PATCH] Update frontend/src/app/api/categories/route.ts MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Håvard Gjøby Thom <34199185+havardthom@users.noreply.github.com> --- 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 9f1b0804..2b12a43e 100644 --- a/frontend/src/app/api/categories/route.ts +++ b/frontend/src/app/api/categories/route.ts @@ -32,7 +32,7 @@ const fetchScripts = async (): Script[] => { export async function GET() { try { - const categories: Category[] = await fetchCategories(); + const categories = await fetchCategories(); const scripts = await fetchScripts(); for (const category of categories) { category.scripts = scripts.filter((script) => script.categories.includes(category.id));