mirror of
				https://github.com/zadam/trilium.git
				synced 2025-10-31 10:26:08 +01:00 
			
		
		
		
	fixes
This commit is contained in:
		| @@ -49,6 +49,8 @@ async function createNote(parentNoteId, options = {}) { | |||||||
|         window.cutToNote.removeSelection(); |         window.cutToNote.removeSelection(); | ||||||
|     } |     } | ||||||
|  |  | ||||||
|  |     await ws.waitForMaxKnownSyncId(); | ||||||
|  |  | ||||||
|     if (options.activate) { |     if (options.activate) { | ||||||
|         const activeTabContext = appContext.tabManager.getActiveTabContext(); |         const activeTabContext = appContext.tabManager.getActiveTabContext(); | ||||||
|         await activeTabContext.setNote(note.noteId); |         await activeTabContext.setNote(note.noteId); | ||||||
| @@ -62,7 +64,7 @@ async function createNote(parentNoteId, options = {}) { | |||||||
|     } |     } | ||||||
|  |  | ||||||
|     const noteEntity = await treeCache.getNote(note.noteId); |     const noteEntity = await treeCache.getNote(note.noteId); | ||||||
|     const branchEntity = treeCache.getBranchId(branch.branchId); |     const branchEntity = treeCache.getBranch(branch.branchId); | ||||||
|  |  | ||||||
|     return { |     return { | ||||||
|         note: noteEntity, |         note: noteEntity, | ||||||
|   | |||||||
| @@ -126,9 +126,7 @@ export default class EditableTextTypeWidget extends AbstractTextTypeWidget { | |||||||
|         const noteComplement = await treeCache.getNoteComplement(note.noteId); |         const noteComplement = await treeCache.getNoteComplement(note.noteId); | ||||||
|  |  | ||||||
|         await this.spacedUpdate.allowUpdateWithoutChange(() => { |         await this.spacedUpdate.allowUpdateWithoutChange(() => { | ||||||
|             if (noteComplement.content) { |             this.textEditor.setData(noteComplement.content || ""); | ||||||
|                 this.textEditor.setData(noteComplement.content); |  | ||||||
|             } |  | ||||||
|         }); |         }); | ||||||
|     } |     } | ||||||
|  |  | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user