Update page.tsx

This commit is contained in:
CanbiZ 2025-01-23 10:30:15 +01:00
parent ae791bcb16
commit 7fb7ac3bfb

View File

@ -51,7 +51,7 @@ const CategoryView = () => {
).then((results) => results.filter((script) => script !== null)); ).then((results) => results.filter((script) => script !== null));
// Kategorien und Skripte verknüpfen // Kategorien und Skripte verknüpfen
categories.forEach((category) => { categories.forEach((category: Category) => {
category.scripts = scripts.filter((script: Script) => category.scripts = scripts.filter((script: Script) =>
script.categories.includes(category.id) script.categories.includes(category.id)
); );