feature/IO-3499-React-19: Bug Fixes / Checkpoint
This commit is contained in:
@@ -13,13 +13,13 @@ export default function AllocationsLabelContainer({ allocation, refetch }) {
|
||||
e.preventDefault();
|
||||
deleteAllocation({ variables: { id: allocation.id } })
|
||||
.then(() => {
|
||||
notification["success"]({
|
||||
message: t("allocations.successes.deleted")
|
||||
notification.success({
|
||||
title: t("allocations.successes.deleted")
|
||||
});
|
||||
if (refetch) refetch();
|
||||
})
|
||||
.catch(() => {
|
||||
notification["error"]({ message: t("allocations.errors.deleting") });
|
||||
notification.error({ title: t("allocations.errors.deleting") });
|
||||
});
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user