mirror of
https://github.com/jackyzha0/quartz.git
synced 2025-12-24 13:24:05 -06:00
fix: maybeDates will change children dates
This commit is contained in:
parent
fbb4523853
commit
0db610aac9
@ -71,7 +71,10 @@ 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) {
|
||||
maybeDates = child.data.dates
|
||||
const childDates = child.data.dates;
|
||||
maybeDates = {
|
||||
...childDates
|
||||
}
|
||||
} else {
|
||||
if (child.data.dates.created > maybeDates.created) {
|
||||
maybeDates.created = child.data.dates.created
|
||||
|
||||
Loading…
Reference in New Issue
Block a user