yes it is

This commit is contained in:
mmacierzanka committed 2021-10-07 21:02:55 +02:00
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 (