(fix) correctly initialize the PreventInvitationsWhitelist array

pull/91/head
Ludovic Marcotte 2015-04-28 14:01:44 -04:00 committed by Francis Lachapelle
parent ebf4c1a9c7
commit 966a088a0f
1 changed files with 2 additions and 0 deletions

View File

@ -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);
});