diff --git a/src/pages/empleos/[category]/[...page].astro b/src/pages/empleos/[category]/[...page].astro index 315318f..09a8ea8 100644 --- a/src/pages/empleos/[category]/[...page].astro +++ b/src/pages/empleos/[category]/[...page].astro @@ -22,7 +22,7 @@ export async function getStaticPaths({ paginate }) { const response = await fetch(backend_url + "api/jobs/get-all-jobs"); const allJobs = await response.json(); - return allCategories.map((categoryObj) => { + return allCategories.flatMap((categoryObj) => { let filteredJobs = categoryObj.type == "job" ? allJobs.filter((job) => job[categoryObj.key])