mirror of
				https://github.com/zadam/trilium.git
				synced 2025-10-31 10:26:08 +01:00 
			
		
		
		
	protection against note switching race conditions
This commit is contained in:
		| @@ -98,11 +98,14 @@ class NoteDetailText { | ||||
|             } | ||||
|         } | ||||
|  | ||||
|         this.textEditor.isReadOnly = await this.isReadOnly(); | ||||
|         // lazy loading above can take time and tab might have been already switched to another note | ||||
|         if (this.ctx.note && this.ctx.note.type === 'text') { | ||||
|             this.textEditor.isReadOnly = await this.isReadOnly(); | ||||
|  | ||||
|         this.$component.show(); | ||||
|             this.$component.show(); | ||||
|  | ||||
|         this.textEditor.setData(this.ctx.note.content); | ||||
|             this.textEditor.setData(this.ctx.note.content); | ||||
|         } | ||||
|     } | ||||
|  | ||||
|     getContent() { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user