From dd147a7209759bae97ba243d552088380abda991 Mon Sep 17 00:00:00 2001 From: zadam Date: Tue, 1 Oct 2019 21:42:36 +0200 Subject: [PATCH] rename var so it's not misleading --- src/services/backend_script_api.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/services/backend_script_api.js b/src/services/backend_script_api.js index 514f70416..620f6480f 100644 --- a/src/services/backend_script_api.js +++ b/src/services/backend_script_api.js @@ -209,11 +209,11 @@ function BackendScriptApi(currentNote, apiParams) { * @returns {Promise<{note: Note, branch: Branch}>} object contains newly created entities note and branch */ 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(); - return note; + return ret; }; /**