mirror of
https://github.com/odoo/owl.git
synced 2025-10-06 19:59:41 +07:00
[FIX] hooks: order of brackets for multiple async hooks
This commit is contained in:
committed by
Géry Debongnie
parent
c469cac315
commit
2b0315c03f
+1
-1
@@ -70,7 +70,7 @@ function makeAsyncHook(method: string) {
|
||||
if (component.__owl__[method]) {
|
||||
const current = component.__owl__[method];
|
||||
component.__owl__[method] = function(...args) {
|
||||
return Promise.all[(current.call(component, ...args), cb.call(component, ...args))];
|
||||
return Promise.all([current.call(component, ...args), cb.call(component, ...args)]);
|
||||
};
|
||||
} else {
|
||||
component.__owl__[method] = cb;
|
||||
|
||||
Reference in New Issue
Block a user