From 8fc97c60e208325f5dc25e36087cf0dead7d23c4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C5=BEe=20Fortun?= Date: Thu, 12 Dec 2024 16:44:16 +0100 Subject: [PATCH] Remove try catch from content base computed --- .../src/components/PageBlocks/ContentBase.vue | 21 +++++++------------ 1 file changed, 8 insertions(+), 13 deletions(-) diff --git a/client/web/compose/src/components/PageBlocks/ContentBase.vue b/client/web/compose/src/components/PageBlocks/ContentBase.vue index e9e042a8e..150a8e706 100644 --- a/client/web/compose/src/components/PageBlocks/ContentBase.vue +++ b/client/web/compose/src/components/PageBlocks/ContentBase.vue @@ -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, + }) }, }, }