mirror of
https://github.com/zadam/trilium.git
synced 2025-11-01 10:55:55 +01:00
optimization of search
This commit is contained in:
@@ -152,6 +152,12 @@ function getSomePath(note, path = []) {
|
||||
|
||||
function getNotePath(noteId) {
|
||||
const note = noteCache.notes[noteId];
|
||||
|
||||
if (!note) {
|
||||
console.trace(`Cannot find note ${noteId} in cache.`);
|
||||
return;
|
||||
}
|
||||
|
||||
const retPath = getSomePath(note);
|
||||
|
||||
if (retPath) {
|
||||
|
||||
Reference in New Issue
Block a user