mirror of
https://github.com/zadam/trilium.git
synced 2025-11-17 02:30:42 +01:00
converting note properties to methods
This commit is contained in:
@@ -64,7 +64,7 @@ function buildRewardMap(note) {
|
||||
}
|
||||
}
|
||||
|
||||
for (const ancestorNote of note.ancestors) {
|
||||
for (const ancestorNote of note.getAncestors()) {
|
||||
if (ancestorNote.noteId === 'root') {
|
||||
continue;
|
||||
}
|
||||
@@ -249,7 +249,7 @@ async function findSimilarNotes(noteId) {
|
||||
|
||||
const rewardMap = buildRewardMap(baseNote);
|
||||
let ancestorRewardCache = {};
|
||||
const ancestorNoteIds = new Set(baseNote.ancestors.map(note => note.noteId));
|
||||
const ancestorNoteIds = new Set(baseNote.getAncestors().map(note => note.noteId));
|
||||
ancestorNoteIds.add(baseNote.noteId);
|
||||
|
||||
let displayRewards = false;
|
||||
|
||||
Reference in New Issue
Block a user