mirror of
				https://github.com/zadam/trilium.git
				synced 2025-10-31 02:16:05 +01:00 
			
		
		
		
	chore: 🤖 fix webpack build error
This commit is contained in:
		| @@ -86,8 +86,8 @@ async function createNote(parentNotePath: string | undefined, options: CreateNot | ||||
|  | ||||
|     await ws.waitForMaxKnownEntityChangeId(); | ||||
|  | ||||
|     if (options.activate) { | ||||
|         const activeNoteContext = appContext.tabManager.getActiveContext(); | ||||
|     const activeNoteContext = appContext.tabManager.getActiveContext(); | ||||
|     if (activeNoteContext && options.activate) { | ||||
|         await activeNoteContext.setNote(`${parentNotePath}/${note.noteId}`); | ||||
|  | ||||
|         if (options.focus === "title") { | ||||
| @@ -152,8 +152,7 @@ async function duplicateSubtree(noteId: string, parentNotePath: string) { | ||||
|  | ||||
|     await ws.waitForMaxKnownEntityChangeId(); | ||||
|  | ||||
|     const activeNoteContext = appContext.tabManager.getActiveContext(); | ||||
|     activeNoteContext.setNote(`${parentNotePath}/${note.noteId}`); | ||||
|     appContext.tabManager.getActiveContext()?.setNote(`${parentNotePath}/${note.noteId}`); | ||||
|  | ||||
|     const origNote = await froca.getNote(noteId); | ||||
|     toastService.showMessage(t("note_create.duplicated", { title: origNote?.title })); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user