fix: data table in campaign

This commit is contained in:
Sabda Yagra 2025-10-06 08:12:01 +07:00
parent ff44a3b837
commit 38897c1cc1
2 changed files with 3 additions and 4 deletions

View File

@ -141,7 +141,7 @@ export default function EditAccountForBroadcast() {
const save = async (data: z.infer<typeof FormSchema>) => {
const reqData = {
id: String(id),
id: Number(id),
// accountName: data.fullname,
// accountType: data.accountType.join(","),
// accountCategory: data.accountCategory,

View File

@ -198,9 +198,8 @@ const CampaignListTable = () => {
{flexRender(cell.column.columnDef.cell, {
...cell.getContext(),
onDeleteSuccess: (id: number) => {
setDataTable((prev) =>
prev.filter((item) => item.id !== id)
);
// setDataTable((prev) => prev.filter((item) => item.id !== id)
fetchData()
},
})}
</TableCell>