diff options
| author | Pliable Pixels <pliablepixels@gmail.com> | 2019-05-31 14:20:18 -0400 |
|---|---|---|
| committer | Pliable Pixels <pliablepixels@gmail.com> | 2019-05-31 14:20:18 -0400 |
| commit | df929e10f2ba5677833c59eaf4df30838f3eed56 (patch) | |
| tree | eff055f47919a8041b8197d7631cd7094eedc18e /www/js | |
| parent | 9ef6025aacefbee7bb457563df0ec28ab2698803 (diff) | |
handle failure gracefully in case timeline http fails (interceptor was fixed)
Diffstat (limited to 'www/js')
| -rw-r--r-- | www/js/TimelineCtrl.js | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/www/js/TimelineCtrl.js b/www/js/TimelineCtrl.js index ed240a9f..14f282b8 100644 --- a/www/js/TimelineCtrl.js +++ b/www/js/TimelineCtrl.js @@ -1019,6 +1019,10 @@ angular.module('zmApp.controllers').controller('zmApp.TimelineCtrl', ['$ionicPla } + function noop() { + + }; + //------------------------------------------------- // This function draws the graph //------------------------------------------------- @@ -1364,7 +1368,8 @@ angular.module('zmApp.controllers').controller('zmApp.TimelineCtrl', ['$ionicPla } - ); // get Events + ) + .catch (noop); // get Events }); } |
