Skip to content

Commit

Permalink
fix: prevent error when get timeout from api
Browse files Browse the repository at this point in the history
Signed-off-by: Vitor Mattos <[email protected]>
  • Loading branch information
vitormattos committed Jan 16, 2025
1 parent 9a1a072 commit 8db7366
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Components/RightSidebar/RequestSignatureTab.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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))
}
})
Expand Down

0 comments on commit 8db7366

Please sign in to comment.