mirror of
https://github.com/zadam/trilium.git
synced 2025-11-01 02:45:54 +01:00
fixes and optimizations for search
This commit is contained in:
@@ -100,8 +100,7 @@ function search(noteId, tokens, path, results) {
|
||||
noteId: thisNoteId,
|
||||
branchId: childParentToBranchId[`${thisNoteId}-${thisParentNoteId}`],
|
||||
title: noteTitle,
|
||||
path: retPath.join('/'),
|
||||
prefix: prefixes[`${thisNoteId}-${thisParentNoteId}`]
|
||||
path: retPath.join('/')
|
||||
});
|
||||
}
|
||||
|
||||
@@ -206,9 +205,11 @@ function getNotePath(noteId) {
|
||||
|
||||
if (retPath) {
|
||||
const noteTitle = getNoteTitleForPath(retPath);
|
||||
const parentNoteId = childToParent[noteId][0];
|
||||
|
||||
return {
|
||||
noteId: noteId,
|
||||
branchId: childParentToBranchId[`${noteId}-${parentNoteId}`],
|
||||
title: noteTitle,
|
||||
path: retPath.join('/')
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user