Skip to content

Commit

Permalink
Changed method redirect back to its original state
Browse files Browse the repository at this point in the history
  • Loading branch information
lupusA committed Jul 8, 2023
1 parent 4045a85 commit 912b92b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/uiutil.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ export function compare(a, b) {
* @param {error} The error that was returned
*/
export function redirect(e) {
if (e.response.data.code === "NOT_CONNECTED") {
if (e && e.response && e.response.data && e.response.data.code === "NOT_CONNECTED") {
window.location.replace("/repo")
}
}
Expand Down

0 comments on commit 912b92b

Please sign in to comment.