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:
1 parent
64d3fcfab2
commit
c9b334462b
1 file changed
+1
-1
@@ -38,7 +38,7 @@ export default function EventType(props) {
|
||||
}
|
||||
});
|
||||
|
||||
console.log(response);
|
||||
router.push('/availability');
|
||||
}
|
||||
|
||||
async function deleteEventTypeHandler(event) {
|
||||
|
||||
Reference in new issue
Block a user