From 0620cd16840fcef89ce264d08836e3c3e56d665d Mon Sep 17 00:00:00 2001 From: Ross MacArthur Date: Thu, 8 Feb 2024 13:41:41 +0200 Subject: [PATCH] Fix: pass `isSuccess` to axios call --- src/templates/core/axios/sendRequest.hbs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/templates/core/axios/sendRequest.hbs b/src/templates/core/axios/sendRequest.hbs index 51492bf3f..71aa88f7a 100644 --- a/src/templates/core/axios/sendRequest.hbs +++ b/src/templates/core/axios/sendRequest.hbs @@ -17,6 +17,7 @@ export const sendRequest = async ( method: options.method, withCredentials: config.WITH_CREDENTIALS, cancelToken: source.token, + validateStatus: isSuccess, }; onCancel(() => source.cancel('The user aborted a request.'));