bug fixed modified data object

This commit is contained in:
Dani Herrero 2017-10-04 10:54:29 +02:00
parent 6963051974
commit 245112438e
1 changed files with 1 additions and 1 deletions

View File

@ -5,7 +5,7 @@ export default function getModifiedData(object, objectOld) {
var newObject = {};
for (var k in object) {
var val = object[k];
var valOld = objectOld[k];
var valOld = objectOld[k] === undefined ? null : objectOld[k];
if (!isEqual(val, valOld)) {
if (val instanceof Object) {