UNCLASSIFIED

Commit 36caf438 authored by ckwolff's avatar ckwolff
Browse files

only refresh if there is no err status or response which will most likely...

only refresh if there is no err status or response which will most likely occur when session expires
parent 6e6afc7b
...@@ -16,7 +16,7 @@ HTTP.interceptors.response.use( ...@@ -16,7 +16,7 @@ HTTP.interceptors.response.use(
// If err.status does not exist a general networking error occurred. // If err.status does not exist a general networking error occurred.
// We'll assume that their keycloak session has expired, so refresh the // We'll assume that their keycloak session has expired, so refresh the
// page which will redirect them to login // page which will redirect them to login
if (!err.status) { if (!err.status && !err.response?.status) {
location.reload(); location.reload();
} else { } else {
throw err; throw err;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment