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.
This commit is contained in:
Damian Harateh 2021-04-20 01:25:35 +01:00
parent 64d3fcfab2
commit c9b334462b

View file

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