always keep all the ancestors in the tree WIP

This commit is contained in:
zadam
2020-03-18 22:35:54 +01:00
parent 6295a1825d
commit 4a89df7ebf
6 changed files with 109 additions and 58 deletions

View File

@@ -110,7 +110,7 @@ export default class SearchBoxWidget extends BasicWidget {
let activeNote = appContext.tabManager.getActiveTabNote();
if (activeNote.type === 'search') {
activeNote = (await activeNote.getParentNotes())[0];
activeNote = activeNote.getParentNotes()[0];
}
await noteCreateService.createNote(activeNote.noteId, {