diff --git a/packages/nc-gui/composables/useApi/interceptors.ts b/packages/nc-gui/composables/useApi/interceptors.ts index 44c4c8b671..b4e9914a52 100644 --- a/packages/nc-gui/composables/useApi/interceptors.ts +++ b/packages/nc-gui/composables/useApi/interceptors.ts @@ -73,7 +73,7 @@ export function addAxiosInterceptors(api: Api) { 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) }