fix: ensure posts are parsed in all public pages even if media is empty

This commit is contained in:
Carlos (Almeira) 2026-06-22 13:05:32 -05:00
parent 447569569b
commit 08b9445eec
3 changed files with 4 additions and 0 deletions

Binary file not shown.

View File

@ -57,6 +57,8 @@ async function fetchClasificadosData() {
...p,
resolved_media: mediaMap.get(p.imagen_destacada_id as string)
}));
} else {
posts = JSON.parse(JSON.stringify(posts));
}
}

View File

@ -57,6 +57,8 @@ async function fetchEventosData() {
...p,
resolved_media: mediaMap.get(p.imagen_destacada_id as string)
}));
} else {
posts = JSON.parse(JSON.stringify(posts));
}
}