From c9b334462b086509bd8889ad63eb243e6f1cc434 Mon Sep 17 00:00:00 2001 From: Damian Harateh <d.harateh@gmail.com> Date: Tue, 20 Apr 2021 01:25:35 +0100 Subject: [PATCH] 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. --- pages/availability/event/[type].tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pages/availability/event/[type].tsx b/pages/availability/event/[type].tsx index adbadfe1..ece56d12 100644 --- a/pages/availability/event/[type].tsx +++ b/pages/availability/event/[type].tsx @@ -38,7 +38,7 @@ export default function EventType(props) { } }); - console.log(response); + router.push('/availability'); } async function deleteEventTypeHandler(event) {