From c0b73ddaa40576bc391ce9bba0eea922a9a84524 Mon Sep 17 00:00:00 2001
From: Yes365 <ninfovores365@gmail.com>
Date: Mon, 17 Mar 2025 15:27:15 +0000
Subject: [PATCH] fix: maybeDates will change children dates (#1843)
---
quartz/components/pages/FolderContent.tsx | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/quartz/components/pages/FolderContent.tsx b/quartz/components/pages/FolderContent.tsx
index e775653..9621f4f 100644
--- a/quartz/components/pages/FolderContent.tsx
+++ b/quartz/components/pages/FolderContent.tsx
@@ -71,7 +71,7 @@
if (child.data?.dates) {
// compare all dates and assign to maybeDates if its more recent or its not set
if (!maybeDates) {
- maybeDates = child.data.dates
+ maybeDates = { ...child.data.dates }
} else {
if (child.data.dates.created > maybeDates.created) {
maybeDates.created = child.data.dates.created
--
Gitblit v1.10.0