diff --git a/quartz/components/pages/FolderContent.tsx b/quartz/components/pages/FolderContent.tsx index 204b8de14..567b05ad4 100644 --- a/quartz/components/pages/FolderContent.tsx +++ b/quartz/components/pages/FolderContent.tsx @@ -71,9 +71,9 @@ export default ((opts?: Partial) => { if (child.data?.dates) { // compare all dates and assign to maybeDates if its more recent or its not set if (!maybeDates) { - const childDates = child.data.dates; + const childDates = child.data.dates maybeDates = { - ...childDates + ...childDates, } } else { if (child.data.dates.created > maybeDates.created) {