Refactoring
This commit is contained in:
parent
39cfada3e8
commit
dd14dfe72e
41 changed files with 866 additions and 742 deletions
|
|
@ -24,7 +24,7 @@ export const Create: FC<CreateProps> = ({
|
|||
|
||||
useEffect(() => {
|
||||
if (formState.success) {
|
||||
router.back();
|
||||
router.push(`/${entity}/${formState.values.id}`);
|
||||
}
|
||||
}, [formState.success, router]);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue