miolo-model 3.0.0-beta.231 → 3.0.0-beta.232
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/MioloModel.mjs +5 -1
package/package.json
CHANGED
package/src/MioloModel.mjs
CHANGED
|
@@ -266,7 +266,11 @@ export default class MioloModel extends class {} {
|
|
|
266
266
|
}
|
|
267
267
|
if (value instanceof MioloModel) {
|
|
268
268
|
if (changes[key] !== undefined) {
|
|
269
|
-
|
|
269
|
+
if (changes[key] instanceof MioloModel) {
|
|
270
|
+
value.update(changes[key].getData())
|
|
271
|
+
} else {
|
|
272
|
+
value.update(changes[key])
|
|
273
|
+
}
|
|
270
274
|
}
|
|
271
275
|
}
|
|
272
276
|
}
|