Skip to content

Commit c6165ec

Browse files
committed
Support k8s cluster with parameter
1 parent 57da03c commit c6165ec

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

client/src/services/apiProxy.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ export async function request(path, params, autoLogoutOnAuthError = true) {
1919

2020
if (!response.ok) {
2121
const {status, statusText} = response;
22-
if (autoLogoutOnAuthError && status === 401) {
22+
if (autoLogoutOnAuthError && status === 401 && token) {
2323
log.error('Logging out due to auth error', {status, statusText, path});
2424
logout();
2525
}

0 commit comments

Comments
 (0)