Skip to content

Commit

Permalink
Refs #7 - Investigate & fix UI error on subscription
Browse files Browse the repository at this point in the history
  • Loading branch information
johan-fvh committed Jan 16, 2020
1 parent 7fcba63 commit 1fc839d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions frontend/src/services/Api.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ class Api {
this.api.interceptors.response.use(
response => response.data,
error => {
if (error.response.status === 401) {
if (error.response && (error.response.status === 401)) {
localStorage.clear();

// Hacky-ish and ugly but works and quick
Expand Down Expand Up @@ -83,7 +83,7 @@ class Api {
service: id,
attributes: apsenAttrIds,
include_history: includeHistory
});
}, {timeout: 20000});
}

deleteSubscribedService(id) {
Expand Down

0 comments on commit 1fc839d

Please sign in to comment.