Skip to content

Commit 60ef182

Browse files
fixing resources category load
1 parent d670706 commit 60ef182

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/pages/recursos/[category]/[...page].astro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ export async function getStaticPaths({ paginate }) {
1919
}
2020
2121
const allResources = await getCollection("resources");
22-
return allCategories.map((categoryObj) => {
22+
return allCategories.flatMap((categoryObj) => {
2323
let filteredResources = allResources.filter((resource) => resource.data.category == categoryObj.key);
2424
const category = categoryObj.slug;
2525
return paginate(filteredResources, {

0 commit comments

Comments
 (0)