mirror of
				https://github.com/ZetaKebab/quartz.git
				synced 2025-11-04 06:49:49 +00:00 
			
		
		
		
	fix: maybeDates will change children dates (#1843)
This commit is contained in:
		@@ -71,7 +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) {
 | 
			
		||||
                    maybeDates = child.data.dates
 | 
			
		||||
                    maybeDates = { ...child.data.dates }
 | 
			
		||||
                  } else {
 | 
			
		||||
                    if (child.data.dates.created > maybeDates.created) {
 | 
			
		||||
                      maybeDates.created = child.data.dates.created
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user