From 795ba12f3a2ac8883b876b6f5dd7df0b8ea0c2ee Mon Sep 17 00:00:00 2001 From: wh1te909 <7434746+wh1te909@users.noreply.github.com> Date: Mon, 4 Nov 2024 23:50:02 +0000 Subject: [PATCH] handle 423 --- src/boot/axios.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/boot/axios.js b/src/boot/axios.js index 914ebfd5..05f55d52 100644 --- a/src/boot/axios.js +++ b/src/boot/axios.js @@ -75,7 +75,11 @@ export default function ({ app, router }) { text = error.response.data.detail; } // catch all for other 400 error messages - else if (error.response.status >= 400 && error.response.status < 500) { + else if ( + error.response.status >= 400 && + error.response.status < 500 && + error.response.status !== 423 + ) { if (error.config.responseType === "blob") { text = (await error.response.data.text()).replace(/^"|"$/g, ""); } else if (error.response.data.non_field_errors) { @@ -90,7 +94,7 @@ export default function ({ app, router }) { } } - if (text || error.response) { + if ((text || error.response) && error.response.status !== 423) { Notify.create({ color: "negative", message: text ? text : "",