Fix for plain text messages displayed as HTML
This commit is contained in:
parent
e27c381405
commit
5020699033
2 changed files with 4 additions and 1 deletions
|
|
@ -109,6 +109,8 @@ export const TicketDetail: FC<TicketDetailProps> = ({ id }) => {
|
|||
}
|
||||
model={{
|
||||
message: article.bodyWithUrls,
|
||||
type:
|
||||
article.contentType === "text/html" ? "html" : "text",
|
||||
sentTime: article.updated_at,
|
||||
sender: article.from,
|
||||
direction:
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue