Browse Source

fix: null handling

pull/9784/head
Pranav C 1 week ago
parent
commit
9aa032ce7e
  1. 2
      packages/nc-gui/composables/useApi/interceptors.ts

2
packages/nc-gui/composables/useApi/interceptors.ts

@ -73,7 +73,7 @@ export function addAxiosInterceptors(api: Api<any>) {
const response = await axiosInstance.request(config)
return response
} catch (refreshTokenError) {
if (refreshTokenError.code === 'ERR_CANCELED') {
if ((refreshTokenError as any)?.code === 'ERR_CANCELED') {
return Promise.reject(refreshTokenError)
}

Loading…
Cancel
Save