mirror of
https://github.com/odoo/owl.git
synced 2025-10-06 19:59:41 +07:00
[FIX] store: connected component with undefined, null and string props
This commit is contained in:
committed by
Géry Debongnie
parent
85eb30626d
commit
9f77344c3a
+1
-1
@@ -290,7 +290,7 @@ export function connect(mapStateToProps, options: any = {}) {
|
||||
let areKeyObservable = false;
|
||||
for (let key in storeProps) {
|
||||
areKeyObservable =
|
||||
areKeyObservable || "__owl__" in storeProps[key];
|
||||
areKeyObservable || (storeProps[key] && typeof (storeProps[key]) === "object" && "__owl__" in storeProps[key]);
|
||||
}
|
||||
if (areKeyObservable) {
|
||||
hashFunction = function({ storeProps }) {
|
||||
|
||||
Reference in New Issue
Block a user