diff --git a/apps/link/app/(main)/tickets/[id]/@detail/_components/TicketDetail.tsx b/apps/link/app/(main)/tickets/[id]/@detail/_components/TicketDetail.tsx index d24d34a..bee6548 100644 --- a/apps/link/app/(main)/tickets/[id]/@detail/_components/TicketDetail.tsx +++ b/apps/link/app/(main)/tickets/[id]/@detail/_components/TicketDetail.tsx @@ -109,6 +109,8 @@ export const TicketDetail: FC = ({ id }) => { } model={{ message: article.bodyWithUrls, + type: + article.contentType === "text/html" ? "html" : "text", sentTime: article.updated_at, sender: article.from, direction: diff --git a/apps/link/app/_graphql/getTicketArticlesQuery.ts b/apps/link/app/_graphql/getTicketArticlesQuery.ts index c652135..6ef86fd 100644 --- a/apps/link/app/_graphql/getTicketArticlesQuery.ts +++ b/apps/link/app/_graphql/getTicketArticlesQuery.ts @@ -1,4 +1,4 @@ -import { gql } from 'graphql-request'; +import { gql } from "graphql-request"; export const getTicketArticlesQuery = gql` query getTicketArticles($ticketId: ID!) { @@ -7,6 +7,7 @@ query getTicketArticles($ticketId: ID!) { node { id bodyWithUrls + contentType internal type { name