diff --git a/client/core/src/lib/modified.js b/client/core/src/lib/modified.js index ede7f29be..f142126fb 100644 --- a/client/core/src/lib/modified.js +++ b/client/core/src/lib/modified.js @@ -1,4 +1,3 @@ -import ngModule from '../module'; import isEqual from './equals'; export default function getModifiedData(object, objectOld) { @@ -19,5 +18,5 @@ export default function getModifiedData(object, objectOld) { } } - return newObject; + return Object.keys(newObject).length ? newObject : undefined; }