(fix) correctly initialize the PreventInvitationsWhitelist array

This commit is contained in:
Ludovic Marcotte
2015-04-28 14:01:44 -04:00
committed by Francis Lachapelle
parent ebf4c1a9c7
commit 966a088a0f
@@ -46,6 +46,8 @@
data.Calendar.PreventInvitationsWhitelist = _.map(data.Calendar.PreventInvitationsWhitelist, function(value, key) {
return new Preferences.$User({uid: key, shortFormat: value});
});
else
data.Calendar.PreventInvitationsWhitelist = [];
angular.extend(_this.settings, data);
});