(js) Prevent the creation of empty card categories

This commit is contained in:
Francis Lachapelle
2017-10-10 14:55:22 -04:00
parent 888adc9396
commit f34937d92c
4 changed files with 11 additions and 2 deletions
@@ -108,6 +108,8 @@
if (angular.isUndefined(data.SOGoContactsCategories))
data.SOGoContactsCategories = [];
else
data.SOGoContactsCategories = _.compact(data.SOGoContactsCategories);
angular.extend(_this.defaults, data);