feat(views/table): actually add attributes

This commit is contained in:
Elian Doran
2025-06-27 22:43:29 +03:00
parent fe1dbb4cbf
commit 0fb0be4ffc
5 changed files with 30 additions and 14 deletions

View File

@@ -93,11 +93,7 @@ export class TypedComponent<ChildT extends TypedComponent<ChildT>> {
if (fun) {
return this.callMethod(fun, data);
} else {
if (!this.parent) {
throw new Error(`Component "${this.componentId}" does not have a parent attached to propagate a command.`);
}
} else if (this.parent) {
return this.parent.triggerCommand(name, data);
}
}