create note directly from mention linking

This commit is contained in:
zadam
2020-05-09 14:25:27 +02:00
parent c70a842bc6
commit 2e837642e2
9 changed files with 48 additions and 14 deletions

View File

@@ -61,7 +61,13 @@ async function createNote(parentNoteId, options = {}) {
}
}
return {note, branch};
const noteEntity = await treeCache.getNote(note.noteId);
const branchEntity = treeCache.getBranchId(branch.branchId);
return {
note: noteEntity,
branch: branchEntity
};
}
/* If first element is heading, parse it out and use it as a new heading. */
@@ -95,4 +101,4 @@ export default {
createNote,
createNewTopLevelNote,
duplicateNote
};
};