mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-10-19 18:18:12 +00:00
(js) Make sure some arrays are initialized
This commit is contained in:
1 parent
93ced64456
commit
6e988404d9
2 files changed
+11
-7
No files matched your search
@@ -71,10 +71,6 @@
|
||||
}
|
||||
|
||||
function addCalendarCategory() {
|
||||
if (!angular.isDefined(vm.preferences.defaults.SOGoCalendarCategoriesColors)) {
|
||||
vm.preferences.defaults.SOGoCalendarCategoriesColors = {};
|
||||
vm.preferences.defaults.SOGoCalendarCategories = [];
|
||||
}
|
||||
vm.preferences.defaults.SOGoCalendarCategoriesColors["New category"] = "#aaa";
|
||||
vm.preferences.defaults.SOGoCalendarCategories.push("New category");
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user