mirror of
https://github.com/odoo/owl.git
synced 2025-10-06 19:59:41 +07:00
[REF] component: fix typescript error
This commit is contained in:
committed by
Aaron Bohy
parent
1700a6fba3
commit
9b8c582b32
@@ -124,7 +124,7 @@ export class ComponentNode<T extends typeof Component = any> implements VNode<Co
|
|||||||
try {
|
try {
|
||||||
await Promise.all(this.willStart.map((f) => f.call(component)));
|
await Promise.all(this.willStart.map((f) => f.call(component)));
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
handleError(this, e);
|
handleError(this, e as Error);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (this.status === STATUS.NEW && this.fiber === fiber) {
|
if (this.status === STATUS.NEW && this.fiber === fiber) {
|
||||||
@@ -158,7 +158,7 @@ export class ComponentNode<T extends typeof Component = any> implements VNode<Co
|
|||||||
fiber.bdom = this.renderFn();
|
fiber.bdom = this.renderFn();
|
||||||
fiber.root.counter--;
|
fiber.root.counter--;
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
handleError(this, e);
|
handleError(this, e as Error);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user