From 245112438ecc61661228182258f0c4ddf0a4c0d3 Mon Sep 17 00:00:00 2001 From: Dani Herrero Date: Wed, 4 Oct 2017 10:54:29 +0200 Subject: [PATCH] bug fixed modified data object --- client/core/src/lib/modified.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/core/src/lib/modified.js b/client/core/src/lib/modified.js index 1b37f3af6..79f725633 100644 --- a/client/core/src/lib/modified.js +++ b/client/core/src/lib/modified.js @@ -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) {