mirror of
				https://github.com/zadam/trilium.git
				synced 2025-11-04 04:16:17 +01:00 
			
		
		
		
	fix(client/search): note IDs being calculated recursively in table
This commit is contained in:
		@@ -140,7 +140,7 @@ export function useNoteIds(note: FNote | null | undefined, viewType: ViewTypeOpt
 | 
				
			|||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    async function getNoteIds(note: FNote) {
 | 
					    async function getNoteIds(note: FNote) {
 | 
				
			||||||
        if (viewType === "list" || viewType === "grid") {
 | 
					        if (viewType === "list" || viewType === "grid" || viewType === "table") {
 | 
				
			||||||
            return note.getChildNoteIds();
 | 
					            return note.getChildNoteIds();
 | 
				
			||||||
        } else {
 | 
					        } else {
 | 
				
			||||||
            return await note.getSubtreeNoteIds(includeArchived);
 | 
					            return await note.getSubtreeNoteIds(includeArchived);
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user