fix(web(js)): avoid throwing an error when disconnected

pull/273/head
Francis Lachapelle 2020-08-13 10:06:47 -04:00
parent 9ece688bd1
commit 7b9e750806
1 changed files with 1 additions and 1 deletions

View File

@ -376,7 +376,7 @@
$window.recovered = true;
$window.location.href = $window.ApplicationBaseURL + $state.href($state.current);
}
else if (!rejection.data.quiet) {
else if (rejection.data && !rejection.data.quiet) {
// Broadcast the response error
$rootScope.$broadcast('http:Error', rejection);
}