Skip to content

Build your personal knowledge base with Trilium Notes

rename var so it's not misleading

zadamadae0625b989
diff --git a/src/services/backend_script_api.js b/src/services/backend_script_api.js
index 514f70416a..620f6480fd 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;
};
/**