fix: maybeDates will change children dates (#1843)
This commit is contained in:
		
							parent
							
								
									e86544064c
								
							
						
					
					
						commit
						c0b73ddaa4
					
				| @ -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 | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user