Fix for plain text messages displayed as HTML

This commit is contained in:
Darren Clarke 2024-10-17 21:25:12 +02:00
parent e27c381405
commit 5020699033
2 changed files with 4 additions and 1 deletions

View file

@ -109,6 +109,8 @@ export const TicketDetail: FC<TicketDetailProps> = ({ id }) => {
} }
model={{ model={{
message: article.bodyWithUrls, message: article.bodyWithUrls,
type:
article.contentType === "text/html" ? "html" : "text",
sentTime: article.updated_at, sentTime: article.updated_at,
sender: article.from, sender: article.from,
direction: direction:

View file

@ -1,4 +1,4 @@
import { gql } from 'graphql-request'; import { gql } from "graphql-request";
export const getTicketArticlesQuery = gql` export const getTicketArticlesQuery = gql`
query getTicketArticles($ticketId: ID!) { query getTicketArticles($ticketId: ID!) {
@ -7,6 +7,7 @@ query getTicketArticles($ticketId: ID!) {
node { node {
id id
bodyWithUrls bodyWithUrls
contentType
internal internal
type { type {
name name