This commit is contained in:
zadam
2020-02-16 11:22:37 +01:00
parent e06f3ef97e
commit 2c3f07521d
4 changed files with 9 additions and 8 deletions

View File

@@ -52,7 +52,7 @@ export default class Component {
await Promise.all(promises);
}
async triggerCommand(name, data) {
async triggerCommand(name, data = {}) {
const fun = this[name + 'Command'];
const called = await this.callMethod(fun, data);