mirror of
https://github.com/odoo/owl.git
synced 2025-10-06 19:59:41 +07:00
[IMP] store: return data from dispatching an action
This commit is contained in:
committed by
Géry Debongnie
parent
cd9cac1246
commit
ab08e84bff
+1
-6
@@ -99,12 +99,7 @@ export class Store extends EventBus {
|
||||
},
|
||||
...payload
|
||||
);
|
||||
if (result instanceof Promise) {
|
||||
return new Promise((resolve, reject) => {
|
||||
result.then(() => resolve());
|
||||
result.catch(reject);
|
||||
});
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
commit(type: string, ...payload: any): any {
|
||||
|
||||
Reference in New Issue
Block a user