3
0

Remove try catch from content base computed

This commit is contained in:
Jože Fortun 2024-12-12 16:44:16 +01:00
parent efb8a908ca
commit 8fc97c60e2

View File

@ -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,
})
},
},
}