format code
This commit is contained in:
parent
9452208fc2
commit
e7e14402a8
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) {
|
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);
|
data.files = JSON.parse(data.files);
|
||||||
}
|
}
|
||||||
return await api.put(`${BASE_URL_API}monitor/messages/${data.id}`, data);
|
return await api.put(`${BASE_URL_API}monitor/messages/${data.id}`, data);
|
||||||
|
|
|
||||||
|
|
@ -4,6 +4,7 @@ import {
|
||||||
ColGroupDef,
|
ColGroupDef,
|
||||||
SelectionChangedEvent,
|
SelectionChangedEvent,
|
||||||
} from "ag-grid-community";
|
} from "ag-grid-community";
|
||||||
|
import { cloneDeep } from "lodash";
|
||||||
import { useState } from "react";
|
import { useState } from "react";
|
||||||
import TableComponent from "../../../../components/tableComponent";
|
import TableComponent from "../../../../components/tableComponent";
|
||||||
import useAlertStore from "../../../../stores/alertStore";
|
import useAlertStore from "../../../../stores/alertStore";
|
||||||
|
|
@ -13,7 +14,6 @@ import HeaderMessagesComponent from "./components/headerMessages";
|
||||||
import useMessagesTable from "./hooks/use-messages-table";
|
import useMessagesTable from "./hooks/use-messages-table";
|
||||||
import useRemoveMessages from "./hooks/use-remove-messages";
|
import useRemoveMessages from "./hooks/use-remove-messages";
|
||||||
import useUpdateMessage from "./hooks/use-updateMessage";
|
import useUpdateMessage from "./hooks/use-updateMessage";
|
||||||
import { cloneDeep } from "lodash";
|
|
||||||
|
|
||||||
export default function MessagesPage() {
|
export default function MessagesPage() {
|
||||||
const [columns, setColumns] = useState<Array<ColDef | ColGroupDef>>([]);
|
const [columns, setColumns] = useState<Array<ColDef | ColGroupDef>>([]);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue