fix connected notes

This commit is contained in:
quenousimporte 2024-02-07 21:44:12 +01:00
parent 5857299d06
commit 901e0aa812
1 changed files with 3 additions and 3 deletions

View File

@ -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);
}
}