aboutsummaryrefslogtreecommitdiff
path: root/src/App.js
diff options
context:
space:
mode:
authorDeterminant <ted.sybil@gmail.com>2019-01-31 15:14:28 -0500
committerDeterminant <ted.sybil@gmail.com>2019-01-31 15:14:28 -0500
commit374fb92c58c503287dab35c985060916b7c86617 (patch)
tree65ba4935f71e4e0ed4317dae76505b2628e5c871 /src/App.js
parentf9f537e3dd28aa543770aea158e4eff65be0b261 (diff)
...
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 = {};