ctt-babylon 0.7.10 → 0.7.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/fesm2022/ctt-babylon.mjs
CHANGED
|
@@ -3732,6 +3732,10 @@ class MapperService {
|
|
|
3732
3732
|
return 0; // ninguno tiene fecha
|
|
3733
3733
|
});
|
|
3734
3734
|
// Obtener los 4 posts más recientes
|
|
3735
|
+
posts =
|
|
3736
|
+
posts?.filter((post) => post.active) ??
|
|
3737
|
+
posts ??
|
|
3738
|
+
[];
|
|
3735
3739
|
const latestPosts = posts?.slice(0, 4);
|
|
3736
3740
|
return {
|
|
3737
3741
|
pretitle: typeof props?.texts?.pretitle === 'string'
|