fix: ensure posts are parsed in all public pages even if media is empty
This commit is contained in:
parent
447569569b
commit
08b9445eec
Binary file not shown.
@ -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));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -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));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user