mirror of
				https://github.com/zadam/trilium.git
				synced 2025-10-31 18:36:30 +01:00 
			
		
		
		
	small fixes and tweaks
This commit is contained in:
		| @@ -70,10 +70,13 @@ function getLinkMap(req) { | ||||
|  | ||||
| function getTreeMap(req) { | ||||
|     const mapRootNote = becca.getNote(req.params.noteId); | ||||
|     // if the map root itself has ignore (journal typically) then there wouldn't be anything to display so | ||||
|     // we'll just ignore it | ||||
|     const ignoreExcludeFromTreeMap = mapRootNote.hasLabel('excludeFromTreeMap'); | ||||
|     const noteIds = new Set(); | ||||
|  | ||||
|     const notes = mapRootNote.getSubtreeNotes(false) | ||||
|         .filter(note => !note.hasLabel('excludeFromTreeMap')) | ||||
|         .filter(note => ignoreExcludeFromTreeMap || !note.hasLabel('excludeFromTreeMap')) | ||||
|         .filter(note => { | ||||
|             if (note.type !== 'image' || note.getChildNotes().length > 0) { | ||||
|                 return true; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user