mirror of
https://github.com/hexastack/hexabot
synced 2025-06-26 18:27:28 +00:00
Update DeleteDialog.tsx
This commit is contained in:
@@ -40,8 +40,8 @@ export const DeleteDialog = <T extends string = string>({
|
||||
const options = {
|
||||
onError: onDeleteError,
|
||||
onSuccess: (data: unknown) => {
|
||||
rest.setData?.(undefined);
|
||||
onDeleteSuccess(data);
|
||||
rest.reset?.();
|
||||
},
|
||||
};
|
||||
const { mutateAsync: deleteOne } = useDelete(entity, options);
|
||||
|
||||
Reference in New Issue
Block a user