mirror of
https://github.com/jackyzha0/quartz.git
synced 2025-12-24 13:24:05 -06:00
fix: format code
Co-authored-by: Jacky Zhao <j.zhao2k19@gmail.com>
This commit is contained in:
parent
850dcffd00
commit
5dcef15ef1
@ -71,10 +71,7 @@ export default ((opts?: Partial<FolderContentOptions>) => {
|
||||
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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user