Skip to content

Commit

Permalink
Remove try catch from content base computed
Browse files Browse the repository at this point in the history
  • Loading branch information
Fajfa committed Dec 12, 2024
1 parent efb8a90 commit 8fc97c6
Showing 1 changed file with 8 additions and 13 deletions.
21 changes: 8 additions & 13 deletions client/web/compose/src/components/PageBlocks/ContentBase.vue
Original file line number Diff line number Diff line change
Expand Up @@ -20,20 +20,15 @@ export default {
computed: {
contentBody () {
try {
const { body = '' } = this.options
const { body = '' } = this.options
return evaluatePrefilter(body, {
record: this.record,
user: this.$auth.user || {},
recordID: (this.record || {}).recordID || NoID,
ownerID: (this.record || {}).ownedBy || NoID,
userID: (this.$auth.user || {}).userID || NoID,
})
} catch (e) {
this.toastErrorHandler(e)
return ''
}
return evaluatePrefilter(body, {
record: this.record,
user: this.$auth.user || {},
recordID: (this.record || {}).recordID || NoID,
ownerID: (this.record || {}).ownedBy || NoID,
userID: (this.$auth.user || {}).userID || NoID,
})
},
},
}
Expand Down

0 comments on commit 8fc97c6

Please sign in to comment.