format code

This commit is contained in:
anovazzi1 2024-06-28 16:36:00 -03:00 committed by Gabriel Luiz Freitas Almeida
commit a008f8a3de
3 changed files with 3 additions and 3 deletions

View file

@ -1124,7 +1124,7 @@ export async function deleteMessagesFn(ids: string[]) {
}
export async function updateMessageApi(data: Message) {
if(data.files && typeof data.files === 'string'){
if (data.files && typeof data.files === "string") {
data.files = JSON.parse(data.files);
}
return await api.put(`${BASE_URL_API}monitor/messages/${data.id}`, data);

View file

@ -4,6 +4,7 @@ import {
ColGroupDef,
SelectionChangedEvent,
} from "ag-grid-community";
import { cloneDeep } from "lodash";
import { useState } from "react";
import TableComponent from "../../../../components/tableComponent";
import useAlertStore from "../../../../stores/alertStore";
@ -13,7 +14,6 @@ import HeaderMessagesComponent from "./components/headerMessages";
import useMessagesTable from "./hooks/use-messages-table";
import useRemoveMessages from "./hooks/use-remove-messages";
import useUpdateMessage from "./hooks/use-updateMessage";
import { cloneDeep } from "lodash";
export default function MessagesPage() {
const [columns, setColumns] = useState<Array<ColDef | ColGroupDef>>([]);

View file

@ -6,7 +6,7 @@ type Message = {
sender_name: string;
session_id: string;
timestamp: string;
files:Array<string>;
files: Array<string>;
id: string;
};