This commit is contained in:
hanif salafi 2025-10-06 09:36:46 +07:00
commit fab81ed10b
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>