From 2c1f4650c5466cd3bd72057eddd418e6613d9c37 Mon Sep 17 00:00:00 2001 From: Rodrigo Date: Fri, 16 Oct 2026 08:32:24 -0400 Subject: [PATCH] fix(FOUR-29735): 401 in MSC Clone - Form page not redirecting to logout --- resources/js/tasks/edit.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/resources/js/tasks/edit.js b/resources/js/tasks/edit.js index 0b288940e7..a7e6ccd7d5 100644 --- a/resources/js/tasks/edit.js +++ b/resources/js/tasks/edit.js @@ -437,7 +437,11 @@ const main = new Vue({ ); this.draftTask = structuredClone(response.data); }) - .catch(() => { + .catch((error) => { + if (error?.response?.status === 401) { + window.location = "/login"; + return; + } this.errorAutosave = true; }) .finally(() => {