From bb8ddcc26e70222a7ac09501b8518682375ce4e2 Mon Sep 17 00:00:00 2001 From: erwanMarmelab Date: Mon, 25 Mar 2024 16:54:22 +0100 Subject: [PATCH] fix auth error --- packages/ra-directus/src/directusAuthProvider.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/ra-directus/src/directusAuthProvider.ts b/packages/ra-directus/src/directusAuthProvider.ts index 047063d..a9459ac 100644 --- a/packages/ra-directus/src/directusAuthProvider.ts +++ b/packages/ra-directus/src/directusAuthProvider.ts @@ -114,7 +114,7 @@ export const directusAuthProvider = ( } }, checkError: error => { - const status = error.status; + const status = error?.status; if (status === 401 || status === 403) { return Promise.reject(); }