From 9aa032ce7ebf44df372adb187d9ca0f7407ba519 Mon Sep 17 00:00:00 2001 From: Pranav C Date: Wed, 13 Nov 2024 07:30:19 +0000 Subject: [PATCH] fix: null handling --- packages/nc-gui/composables/useApi/interceptors.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) }