diff options
author | Determinant <ted.sybil@gmail.com> | 2019-01-31 15:14:28 -0500 |
---|---|---|
committer | Determinant <ted.sybil@gmail.com> | 2019-01-31 15:14:28 -0500 |
commit | 374fb92c58c503287dab35c985060916b7c86617 (patch) | |
tree | 65ba4935f71e4e0ed4317dae76505b2628e5c871 /src/App.js | |
parent | f9f537e3dd28aa543770aea158e4eff65be0b261 (diff) |
...
Diffstat (limited to 'src/App.js')
-rwxr-xr-x | src/App.js | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -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 = {}; |