fixes for undefined parent note #3066

This commit is contained in:
zadam
2022-08-16 23:46:56 +02:00
parent 78bca2477d
commit 8abcf571e8
4 changed files with 7 additions and 5 deletions

View File

@@ -281,7 +281,7 @@ async function findSimilarNotes(noteId) {
}
function gatherAncestorRewards(note) {
if (ancestorNoteIds.has(note.noteId)) {
if (!note || ancestorNoteIds.has(note.noteId)) {
return 0;
}