mirror of
				https://github.com/TriliumNext/Notes.git
				synced 2025-10-31 13:01:31 +08:00 
			
		
		
		
	fix(client): regression in new tab
This commit is contained in:
		
							parent
							
								
									cecd7eccad
								
							
						
					
					
						commit
						5552db034b
					
				| @ -256,7 +256,7 @@ type EventMappings = { | |||||||
|     }; |     }; | ||||||
|     noteSwitched: { |     noteSwitched: { | ||||||
|         noteContext: NoteContext; |         noteContext: NoteContext; | ||||||
|         notePath: string | null; |         notePath?: string | null; | ||||||
|     }; |     }; | ||||||
|     noteSwitchedAndActivatedEvent: { |     noteSwitchedAndActivatedEvent: { | ||||||
|         noteContext: NoteContext; |         noteContext: NoteContext; | ||||||
|  | |||||||
| @ -156,7 +156,7 @@ export default class NoteDetailWidget extends NoteContextAwareWidget { | |||||||
|             } |             } | ||||||
| 
 | 
 | ||||||
|             // this is happening in update(), so note has been already set, and we need to reflect this
 |             // this is happening in update(), so note has been already set, and we need to reflect this
 | ||||||
|             if (this.noteContext && this.noteContext.notePath) { |             if (this.noteContext) { | ||||||
|                 await typeWidget.handleEvent("noteSwitched", { |                 await typeWidget.handleEvent("noteSwitched", { | ||||||
|                     noteContext: this.noteContext, |                     noteContext: this.noteContext, | ||||||
|                     notePath: this.noteContext.notePath |                     notePath: this.noteContext.notePath | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Elian Doran
						Elian Doran