(fix) correctly initialize the PreventInvitationsWhitelist array

This commit is contained in:
Ludovic Marcotte authored and Francis Lachapelle committed 2015-06-12 11:58:53 -04:00
1 parent ebf4c1a9c7
commit 966a088a0f
1 file changed
+2
@@ -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);
});