mirror of
				https://github.com/TriliumNext/Notes.git
				synced 2025-10-31 13:01:31 +08:00 
			
		
		
		
	fix recent note dialog for deleted notes
This commit is contained in:
		
							parent
							
								
									d0c655f66a
								
							
						
					
					
						commit
						1d3608b7bf
					
				| @ -35,13 +35,15 @@ async function createNoteLink(notePath, options = {}) { | |||||||
|     if (showNotePath) { |     if (showNotePath) { | ||||||
|         notePath = await treeService.resolveNotePath(notePath); |         notePath = await treeService.resolveNotePath(notePath); | ||||||
| 
 | 
 | ||||||
|         const noteIds = notePath.split("/"); |         if (notePath) { | ||||||
|         noteIds.pop(); // remove last element
 |             const noteIds = notePath.split("/"); | ||||||
|  |             noteIds.pop(); // remove last element
 | ||||||
| 
 | 
 | ||||||
|         const parentNotePath = noteIds.join("/").trim(); |             const parentNotePath = noteIds.join("/").trim(); | ||||||
| 
 | 
 | ||||||
|         if (parentNotePath) { |             if (parentNotePath) { | ||||||
|             $container.append($("<small>").text(" (" + await treeUtils.getNotePathTitle(parentNotePath) + ")")); |                 $container.append($("<small>").text(" (" + await treeUtils.getNotePathTitle(parentNotePath) + ")")); | ||||||
|  |             } | ||||||
|         } |         } | ||||||
|     } |     } | ||||||
| 
 | 
 | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 zadam
						zadam