fix connected notes
This commit is contained in:
parent
5857299d06
commit
901e0aa812
6
main.js
6
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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue