From 6c2ba48cbe995ad3c5d1ad3aa498ad286bd36e7c Mon Sep 17 00:00:00 2001 From: Vitor Mattos Date: Thu, 18 Apr 2024 11:46:11 -0300 Subject: [PATCH] fix: prevent error to unmapped options Signed-off-by: Vitor Mattos --- src/views/ReadCertificate.vue | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/views/ReadCertificate.vue b/src/views/ReadCertificate.vue index ac98e9b050..c09daf458d 100644 --- a/src/views/ReadCertificate.vue +++ b/src/views/ReadCertificate.vue @@ -120,8 +120,12 @@ export default { }, methods: { getLabelFromId(id) { - const item = selectCustonOption(id).unwrap() - return item.label + try { + const item = selectCustonOption(id).unwrap() + return item.label + } catch (error) { + return id + } }, async send() { this.hasLoading = true