|
@@ -29,7 +29,7 @@ export const cowValueModel = (...keyDescriptions) => {
|
|
|
|
|
|
return (obj, val = GET_SENTINEL) =>
|
|
|
val === GET_SENTINEL ?
|
|
|
- keys.reduce((x = {}, key) => x[key], obj) :
|
|
|
+ keys.reduce((x, key) => x == null ? undefined : x[key], obj) :
|
|
|
setField(obj, 0, val);
|
|
|
};
|
|
|
|