Archived
yes it is
This commit is contained in:
1 parent
72ccfb5bac
commit
519beb98c1
1 file changed
+2
-2
@@ -16,9 +16,9 @@ export const EventPreviewEdit = (props) => {
|
||||
minute: "2-digit",
|
||||
});
|
||||
};
|
||||
const deleteItem = (arg) => {
|
||||
const deleteItem = async (arg) => {
|
||||
console.log("deleting..." + arg);
|
||||
API_CLIENT.deleteEvent({ id: arg });
|
||||
await API_CLIENT.deleteEvent({ id: arg });
|
||||
history.push("/");
|
||||
};
|
||||
return (
|
||||
|
||||
Reference in new issue
Block a user