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