From 374fb92c58c503287dab35c985060916b7c86617 Mon Sep 17 00:00:00 2001 From: Determinant Date: Thu, 31 Jan 2019 15:14:28 -0500 Subject: ... --- src/App.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'src/App.js') 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 = {}; -- cgit v1.2.3