(fix) correctly initialize the PreventInvitationsWhitelist array
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);
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue