From 8db73662bf9cd0895c70f266508f71686187d239 Mon Sep 17 00:00:00 2001 From: Vitor Mattos Date: Thu, 16 Jan 2025 08:34:38 -0300 Subject: [PATCH] fix: prevent error when get timeout from api Signed-off-by: Vitor Mattos --- src/Components/RightSidebar/RequestSignatureTab.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Components/RightSidebar/RequestSignatureTab.vue b/src/Components/RightSidebar/RequestSignatureTab.vue index b76ee3c36c..032ac53606 100644 --- a/src/Components/RightSidebar/RequestSignatureTab.vue +++ b/src/Components/RightSidebar/RequestSignatureTab.vue @@ -236,9 +236,9 @@ export default { emit('libresign:show-visible-elements') }) .catch(({ response }) => { - if (response.data.ocs.data.message) { + if (response?.data?.ocs?.data?.message) { showError(response.data.ocs.data.message) - } else if (response.data.ocs.data.errors) { + } else if (response?.data?.ocs?.data?.errors) { response.data.ocs.data.errors.forEach(error => showError(error)) } })