fix deleting / erasing note

This commit is contained in:
zadam
2022-09-21 23:58:54 +02:00
parent 15ed381f85
commit 0c196ae3a5
4 changed files with 13 additions and 10 deletions

View File

@@ -670,7 +670,7 @@ export default class NoteTreeWidget extends NoteContextAwareWidget {
const note = branch.getNoteFromCache();
if (!note) {
throw new Error(`Branch "${branch.branchId}" has no note "${branch.noteId}"`);
throw new Error(`Branch "${branch.branchId}" has no child note "${branch.noteId}"`);
}
const title = (branch.prefix ? (branch.prefix + " - ") : "") + note.title;