Merge remote-tracking branch 'origin/develop' into feature/client_typescript_port1

This commit is contained in:
Elian Doran
2024-12-14 09:27:51 +02:00
565 changed files with 20328 additions and 63708 deletions

View File

@@ -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);
}
}