optimization of search

This commit is contained in:
zadam
2020-08-28 23:20:22 +02:00
parent 5a8c3f6a2b
commit 172f3689fa
2 changed files with 10 additions and 2 deletions

View File

@@ -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) {