rename var so it's not misleading

(cherry picked from commit dd147a7209)
This commit is contained in:
zadam 2019-10-01 21:42:36 +02:00
parent 5063cfb979
commit adae0625b9

View file

@ -209,11 +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) {
const note = await noteService.createNote(parentNoteId, title, content, extraOptions); const ret = await noteService.createNote(parentNoteId, title, content, extraOptions);
ws.refreshTree(); ws.refreshTree();
return note; return ret;
}; };
/** /**