From 0a9f616aa558873a530193808a5f946d7152080e Mon Sep 17 00:00:00 2001 From: Sanja Date: Tue, 8 Oct 2024 13:27:59 -0700 Subject: [PATCH] Improve error handling --- src/components/ScreenTemplateCard.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/ScreenTemplateCard.vue b/src/components/ScreenTemplateCard.vue index 1cd9f7969..323173bf5 100644 --- a/src/components/ScreenTemplateCard.vue +++ b/src/components/ScreenTemplateCard.vue @@ -127,7 +127,7 @@ export default { window.location.reload(); }) .catch((error) => { - const errorMessage = error.response?.data?.message || error.message; + const errorMessage = error.response?.data?.message || error.response?.data?.error || error.message; ProcessMaker.alert(errorMessage, "danger"); }); },