diff --git a/app/javascript/dashboard/routes/dashboard/conversation/ContactCustomAttributes.vue b/app/javascript/dashboard/routes/dashboard/conversation/ContactCustomAttributes.vue index 7639e08e3..0e2cfa8cb 100644 --- a/app/javascript/dashboard/routes/dashboard/conversation/ContactCustomAttributes.vue +++ b/app/javascript/dashboard/routes/dashboard/conversation/ContactCustomAttributes.vue @@ -45,9 +45,20 @@ export default { }, methods: { valueWithLink(attribute) { - const messageFormatter = new MessageFormatter(attribute); + const parsedAttribute = this.parseAttributeToString(attribute); + const messageFormatter = new MessageFormatter(parsedAttribute); return messageFormatter.formattedMessage; }, + parseAttributeToString(attribute) { + switch (typeof attribute) { + case 'string': + return attribute; + case 'object': + return JSON.stringify(attribute); + default: + return `${attribute}`; + } + }, }, };