Json
This commit is contained in:
parent
20121618e5
commit
c39aa01803
@ -41,7 +41,7 @@ export async function GET() {
|
|||||||
const categories = metadata.categories
|
const categories = metadata.categories
|
||||||
.map((category) => {
|
.map((category) => {
|
||||||
category.scripts = scripts.filter((script) =>
|
category.scripts = scripts.filter((script) =>
|
||||||
script.categories.includes(category.id),
|
script.categories?.includes(category.id),
|
||||||
);
|
);
|
||||||
return category;
|
return category;
|
||||||
})
|
})
|
||||||
|
Loading…
x
Reference in New Issue
Block a user