Do not overwrite emtpy values

Signed-off-by: Julius Härtl <jus@bitgrid.net>
This commit is contained in:
Julius Härtl
2018-02-28 16:54:30 +01:00
parent 8f5ded6a28
commit 76e3cc5061

View File

@@ -124,7 +124,9 @@ app.factory('ApiService', function ($http, $q) {
this.data[entity.id] = entity; this.data[entity.id] = entity;
} else { } else {
Object.keys(entity).forEach(function (key) { Object.keys(entity).forEach(function (key) {
element[key] = entity[key]; if (entity[key] !== null) {
element[key] = entity[key];
}
}); });
element.status = {}; element.status = {};
} }