Skip to content

Commit 37e5c8c

Browse files
committed
fix: prevent error when the response dont have data
Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
1 parent 3570a66 commit 37e5c8c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/Components/Request/VisibleElements.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -318,7 +318,7 @@ export default {
318318
return true
319319
})
320320
.catch(({ response }) => {
321-
this.errorConfirmRequest = response.data.ocs.data.message
321+
this.errorConfirmRequest = response?.data?.ocs?.data?.message || 'An error occurred'
322322
this.loading = false
323323
return false
324324
})

0 commit comments

Comments
 (0)