mirror of
https://github.com/odoo/owl.git
synced 2025-10-06 19:59:41 +07:00
[FIX] store: make Array.map work correctly on the result of selector
closes #577
This commit is contained in:
committed by
Géry Debongnie
parent
5e7f1d5e6d
commit
455e45c148
@@ -141,6 +141,9 @@ export function useStore(selector, options: SelectorOptions = {}): any {
|
||||
},
|
||||
set(target, k, v) {
|
||||
throw new Error("Store state should only be modified through actions");
|
||||
},
|
||||
has(target, k) {
|
||||
return k in result;
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user