From df929e10f2ba5677833c59eaf4df30838f3eed56 Mon Sep 17 00:00:00 2001 From: Pliable Pixels Date: Fri, 31 May 2019 14:20:18 -0400 Subject: handle failure gracefully in case timeline http fails (interceptor was fixed) --- www/js/TimelineCtrl.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'www/js') 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 }); } -- cgit v1.2.3