mirror of
				https://github.com/zadam/trilium.git
				synced 2025-10-31 10:26:08 +01:00 
			
		
		
		
	Merge remote-tracking branch 'origin/develop' into feature/client_typescript_port1
This commit is contained in:
		| @@ -87,9 +87,12 @@ export default class Component { | ||||
|  | ||||
|         if (fun) { | ||||
|             return this.callMethod(fun, data); | ||||
|         } | ||||
|         else { | ||||
|             return this.parent?.triggerCommand(name, data); | ||||
|         } else { | ||||
|             if (!this.parent) { | ||||
|                 throw new Error(`Component "${this.componentId}" does not have a parent attached to propagate a command.`); | ||||
|             } | ||||
|  | ||||
|             return this.parent.triggerCommand(name, data); | ||||
|         } | ||||
|     } | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user