Do not overwrite emtpy values
Signed-off-by: Julius Härtl <jus@bitgrid.net>
This commit is contained in:
@@ -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) {
|
||||||
|
if (entity[key] !== null) {
|
||||||
element[key] = entity[key];
|
element[key] = entity[key];
|
||||||
|
}
|
||||||
});
|
});
|
||||||
element.status = {};
|
element.status = {};
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user