From 4ab90b694fc08e08e0a23ee0fa36e04b111d7ccb Mon Sep 17 00:00:00 2001 From: zadam Date: Mon, 9 Jan 2023 23:15:02 +0100 Subject: [PATCH] fix --- src/public/app/entities/fnote.js | 2 +- src/public/app/widgets/note_tree.js | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/public/app/entities/fnote.js b/src/public/app/entities/fnote.js index 4022c812f..a3319b10d 100644 --- a/src/public/app/entities/fnote.js +++ b/src/public/app/entities/fnote.js @@ -454,7 +454,7 @@ class FNote { let childBranches = this.getChildBranches(); if (!childBranches) { - ws.logError(`No children for ${parentNote}. This shouldn't happen.`); + ws.logError(`No children for '${this.noteId}'. This shouldn't happen.`); return; } diff --git a/src/public/app/widgets/note_tree.js b/src/public/app/widgets/note_tree.js index 01f1ce23b..72999f2d8 100644 --- a/src/public/app/widgets/note_tree.js +++ b/src/public/app/widgets/note_tree.js @@ -1126,7 +1126,8 @@ export default class NoteTreeWidget extends NoteContextAwareWidget { if (note && note.getChildNoteIds().includes(ecAttr.value)) { // there's new/deleted imageLink betwen note and its image child - which can show/hide - // the image (if there is a imageLink relation between parent and child then it is assumed to be "contained" in the note and thus does not have to be displayed in the tree) + // the image (if there is a imageLink relation between parent and child + // then it is assumed to be "contained" in the note and thus does not have to be displayed in the tree) noteIdsToReload.add(ecAttr.noteId); } }