Feature/move list to client (#50)
This commit is contained in:
committed by
GitHub
parent
c2abdaadf2
commit
668434d246
@@ -31,12 +31,13 @@ export default function AddDashboard() {
|
||||
|
||||
const mutation = api.dashboard.create.useMutation({
|
||||
onError: handleError,
|
||||
onSuccess() {
|
||||
router.refresh();
|
||||
onSuccess(res) {
|
||||
router.push(`/${organizationSlug}/${projectId}/dashboards/${res.id}`);
|
||||
toast('Success', {
|
||||
description: 'Dashboard created.',
|
||||
});
|
||||
popModal();
|
||||
router.refresh();
|
||||
},
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user