mirror of
				https://github.com/TriliumNext/Notes.git
				synced 2025-10-31 04:51:31 +08:00 
			
		
		
		
	fix getEditedNotesOnDate
This commit is contained in:
		
							parent
							
								
									7fc2824325
								
							
						
					
					
						commit
						6098d62dcc
					
				| @ -132,15 +132,17 @@ function getEditedNotesOnDate(req) { | |||||||
|         notes = notes.filter(note => note.hasAncestor(hoistedNoteId)); |         notes = notes.filter(note => note.hasAncestor(hoistedNoteId)); | ||||||
|     } |     } | ||||||
| 
 | 
 | ||||||
|     notes = notes.map(note => note.getPojo()); |     const notePojos = notes.map(note => note.getPojo()); | ||||||
| 
 | 
 | ||||||
|     for (const note of notes) { |     notes.forEach((note, index) => { | ||||||
|         const notePath = note.isDeleted ? null : getNotePathData(note); |         const notePath = note.isDeleted ? null : getNotePathData(note); | ||||||
| 
 | 
 | ||||||
|         note.notePath = notePath ? notePath.notePath : null; |         notePojos[index].notePath = notePath ? notePath.notePath : null; | ||||||
|     } |     }); | ||||||
| 
 | 
 | ||||||
|     return notes; | 
 | ||||||
|  | 
 | ||||||
|  |     return notePojos; | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| function getNotePathData(note) { | function getNotePathData(note) { | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 baiyongjie
						baiyongjie