From 901e0aa812e1555f0722692a831798a30f27502f Mon Sep 17 00:00:00 2001 From: quenousimporte Date: Wed, 7 Feb 2024 21:44:12 +0100 Subject: [PATCH] fix connected notes --- main.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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); } }