format code
This commit is contained in:
parent
5cbe19934e
commit
a008f8a3de
3 changed files with 3 additions and 3 deletions
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -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>>([]);
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@ type Message = {
|
|||
sender_name: string;
|
||||
session_id: string;
|
||||
timestamp: string;
|
||||
files:Array<string>;
|
||||
files: Array<string>;
|
||||
id: string;
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue