From 5a13d28cb48f4a7adcab6650541c28738cd32db6 Mon Sep 17 00:00:00 2001 From: KelvinTegelaar Date: Sun, 14 Apr 2024 23:12:33 +0200 Subject: [PATCH] case sensitivity --- src/store/api/baseQuery.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/store/api/baseQuery.js b/src/store/api/baseQuery.js index 6ca47874842b..c807fe4a35c3 100644 --- a/src/store/api/baseQuery.js +++ b/src/store/api/baseQuery.js @@ -36,7 +36,7 @@ export const axiosQuery = async ({ path, method = 'get', params, data, hideToast const shouldRetry = (error, path) => { // Check if the path starts with 'List', error qualifies for a retry, and payload message is 'Backend call failure' return ( - path.startsWith('/List') && + path.toLower().startsWith('/list') && (!error.response || error.response.status >= 500) && error.response?.data === 'Backend call failure' )