Skip to content

Commit

Permalink
Merge pull request #2803 from LibreSign/backport/2802/stable28
Browse files Browse the repository at this point in the history
[stable28] fix: prevent error to unmapped options
  • Loading branch information
vitormattos authored Apr 18, 2024
2 parents b06760b + 6c2ba48 commit 6793bde
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/views/ReadCertificate.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 6793bde

Please sign in to comment.