Skip to content

Commit 2f6a994

Browse files
committed
fix: update router push path to redirect to metadata edit page after dataset creation
1 parent 84122c8 commit 2f6a994

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

app/[locale]/dashboard/[entityType]/[entitySlug]/dataset/components/content.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ export const Content = ({
4646
{
4747
onSuccess: (data: any) => {
4848
router.push(
49-
`/dashboard/${params.entityType}/${params.entitySlug}/dataset/${data?.addDataset?.id}/edit/resources`
49+
`/dashboard/${params.entityType}/${params.entitySlug}/dataset/${data?.addDataset?.id}/edit/metadata`
5050
);
5151
},
5252
onError: (err: any) => {

app/[locale]/dashboard/[entityType]/[entitySlug]/dataset/page-layout.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ export const Page = () => {
5151
});
5252

5353
router.push(
54-
`/dashboard/${params.entityType}/${params.entitySlug}/dataset/${data?.addDataset?.id}/edit/resources`
54+
`/dashboard/${params.entityType}/${params.entitySlug}/dataset/${data?.addDataset?.id}/edit/metadata`
5555
);
5656
},
5757
onError: (err: any) => {

0 commit comments

Comments
 (0)