From a7219861f4d5daad0e252e4cc5b875399e18b33c Mon Sep 17 00:00:00 2001 From: James Collins Date: Mon, 13 Mar 2023 21:15:28 +1000 Subject: [PATCH] fix progress option to not throw error if http status is any value below 300 --- resources/js/helpers/api.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resources/js/helpers/api.ts b/resources/js/helpers/api.ts index 9abfde2..24c3cea 100644 --- a/resources/js/helpers/api.ts +++ b/resources/js/helpers/api.ts @@ -139,7 +139,7 @@ export const api = { result.data = xhr.response; } - if (xhr.status === 200) { + if (xhr.status < 300) { resolve(result); } else { reject(result);