mirror of
				https://github.com/zadam/trilium.git
				synced 2025-10-31 11:39:01 +01:00 
			
		
		
		
	rename var so it's not misleading
This commit is contained in:
		
							parent
							
								
									c3fabcb666
								
							
						
					
					
						commit
						dd147a7209
					
				| @ -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; | ||||||
|     }; |     }; | ||||||
| 
 | 
 | ||||||
|     /** |     /** | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 zadam
						zadam