Fix for a bug when updating an event type

- Due to the lack of router object, after clicking "Update" on the Event Type - a response would be printed to the console, but without being routed back to the availability page.
pull/57/head
Damian Harateh 2021-04-20 01:25:35 +01:00
parent 64d3fcfab2
commit c9b334462b
1 changed files with 1 additions and 1 deletions

View File

@ -38,7 +38,7 @@ export default function EventType(props) {
}
});
console.log(response);
router.push('/availability');
}
async function deleteEventTypeHandler(event) {