Merge remote-tracking branch 'origin/master'

This commit is contained in:
zadam 2019-10-01 21:41:26 +02:00
commit c3fabcb666

View file

@ -209,9 +209,11 @@ function BackendScriptApi(currentNote, apiParams) {
* @returns {Promise<{note: Note, branch: Branch}>} object contains newly created entities note and branch * @returns {Promise<{note: Note, branch: Branch}>} object contains newly created entities note and branch
*/ */
this.createNoteAndRefresh = async function(parentNoteId, title, content, extraOptions) { this.createNoteAndRefresh = async function(parentNoteId, title, content, extraOptions) {
await noteService.createNote(parentNoteId, title, content, extraOptions); const note = await noteService.createNote(parentNoteId, title, content, extraOptions);
ws.refreshTree(); ws.refreshTree();
return note;
}; };
/** /**