mirror of
https://github.com/odoo/owl.git
synced 2025-10-06 19:59:41 +07:00
+3
-1
@@ -458,7 +458,9 @@ export class Component<T extends Env, Props extends {}, State extends {}> {
|
||||
p = p.__proto__;
|
||||
}
|
||||
if (p === Component) {
|
||||
this.template = "default";
|
||||
throw new Error(
|
||||
`Could not find template for component "${this.constructor.name}"`
|
||||
);
|
||||
} else {
|
||||
tmap[name] = template;
|
||||
this.template = template;
|
||||
|
||||
@@ -149,7 +149,6 @@ export class QWeb {
|
||||
if (data) {
|
||||
this.addTemplates(data);
|
||||
}
|
||||
this.addTemplate("default", "<div></div>");
|
||||
}
|
||||
|
||||
static addDirective(directive: Directive) {
|
||||
|
||||
Reference in New Issue
Block a user