N-FIN-12: refresh page after generation
This commit is contained in:
parent
b8a7a5d6f4
commit
382df84510
1 changed files with 1 additions and 3 deletions
|
@ -14,9 +14,7 @@ export default function GenerateSampleDataForm({onSubmit}: { onSubmit: () => Pro
|
|||
const handleSubmit = async () => {
|
||||
const response = await onSubmit();
|
||||
toast(sonnerContent(response));
|
||||
if (response.redirect) {
|
||||
router.push(response.redirect);
|
||||
}
|
||||
router.refresh();
|
||||
};
|
||||
|
||||
return (
|
||||
|
|
Loading…
Add table
Reference in a new issue