diff --git a/main.js b/main.js index cfdcf96..eca43a4 100644 --- a/main.js +++ b/main.js @@ -502,9 +502,9 @@ function parents(guid) .filter(g => localStorage.getItem(g).indexOf("[[" + metadata[guid].title + "]]") != -1); } -function connected(note) +function connected(guid) { - var list = [note]; + var list = [guid]; var result = []; while (list.length) @@ -606,7 +606,7 @@ function shownotelinks() } else { - searchinlist(connected(currentnote).map(n => n.title)) + searchinlist(connected(getguid(title.value)).map(g => metadata[g].title)) .then(loadnote); } }