(js) Prevent the creation of empty card categories

This commit is contained in:
Francis Lachapelle committed 2017-10-10 14:55:22 -04:00
1 parent 888adc9396
commit f34937d92c
4 files changed
+11 -2

No files matched your search

@@ -108,6 +108,8 @@
if (angular.isUndefined(data.SOGoContactsCategories))
data.SOGoContactsCategories = [];
else
data.SOGoContactsCategories = _.compact(data.SOGoContactsCategories);
angular.extend(_this.defaults, data);