|
@@ -139,8 +139,8 @@ class RxValue {
|
|
|
names.forEach(name=>{
|
|
|
const initV = _fields[name]
|
|
|
const isRxField = typeof initV == "object" && initV.__rx
|
|
|
- if (isRxField) {
|
|
|
- out[name] = obj[name].fromJson( json[name] );
|
|
|
+ if (isRxField ) {
|
|
|
+ if(json[name]) out[name] = obj[name].fromJson( json[name] );
|
|
|
return;
|
|
|
}
|
|
|
obj._rxs[name].next({value: json[name], _hstry: false})
|