mirror of
				https://github.com/zadam/trilium.git
				synced 2025-10-31 10:26:08 +01:00 
			
		
		
		
	always use template strings instead of string concatenation
This commit is contained in:
		| @@ -96,7 +96,7 @@ class AppContext extends Component { | ||||
|     /** @returns {Promise} */ | ||||
|     triggerCommand(name, data = {}) { | ||||
|         for (const executor of this.components) { | ||||
|             const fun = executor[name + "Command"]; | ||||
|             const fun = executor[`${name}Command`]; | ||||
|  | ||||
|             if (fun) { | ||||
|                 return executor.callMethod(fun, data); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user