From 5dcef15ef126032a68999997fd04fa4d6bc65c88 Mon Sep 17 00:00:00 2001 From: Yes365 Date: Mon, 17 Mar 2025 11:10:42 +0800 Subject: [PATCH] fix: format code Co-authored-by: Jacky Zhao --- quartz/components/pages/FolderContent.tsx | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/quartz/components/pages/FolderContent.tsx b/quartz/components/pages/FolderContent.tsx index 567b05ad4..9621f4f1a 100644 --- a/quartz/components/pages/FolderContent.tsx +++ b/quartz/components/pages/FolderContent.tsx @@ -71,10 +71,7 @@ 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 - maybeDates = { - ...childDates, - } + maybeDates = { ...child.data.dates } } else { if (child.data.dates.created > maybeDates.created) { maybeDates.created = child.data.dates.created