fix: exclude deleted notes from network to avoid exception
This commit is contained in:
parent
dc7dcbf046
commit
1df82354e3
1
main.js
1
main.js
|
@ -580,6 +580,7 @@ function children(note)
|
||||||
return (note.content
|
return (note.content
|
||||||
.match(/\[\[([^\]]*)\]\]/g) || [])
|
.match(/\[\[([^\]]*)\]\]/g) || [])
|
||||||
.map(l => l.replace("[[", "").replace("]]", ""))
|
.map(l => l.replace("[[", "").replace("]]", ""))
|
||||||
|
.filter(l => !l.includes("(deleted)"))
|
||||||
.map(l => getnote(l));
|
.map(l => getnote(l));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue