Merge branch 'main' of https://gitlab.com/hanifsalafi/mediahub_redesign into prod
This commit is contained in:
commit
fab81ed10b
|
|
@ -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,
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Reference in New Issue