aboutsummaryrefslogtreecommitdiff
path: root/src/App.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/App.js')
-rwxr-xr-xsrc/App.js8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/App.js b/src/App.js
index 4d23440..1d708f9 100755
--- a/src/App.js
+++ b/src/App.js
@@ -111,8 +111,12 @@ class Dashboard extends React.Component {
console.log(start, end);
let event_pms = [];
for (let id in this.cached.calendars)
- event_pms.push(this.cached.calendars[id].cal.getEvents(start, end).then(
- r => { return { id, events: r } }));
+ event_pms.push(this.cached.calendars[id].cal.getEvents(start, end)
+ .then(r => { return { id, events: r }; })
+ .catch(e => {
+ console.log(`cannot load calendar ${id}`);
+ return { id, events: [] };
+ }));
Promise.all(event_pms).then(all_events => {
let events = {};