We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b054799 commit a2cdeebCopy full SHA for a2cdeeb
app/[locale]/dashboard/[entityType]/[entitySlug]/page.tsx
@@ -1,9 +1,18 @@
1
-import { InProgress } from '@/components/in-progress';
2
-
3
-export default async function Page({ params }: { params: { id: string } }) {
4
- return (
5
- <>
6
- <InProgress />
7
- </>
8
- );
9
-}
+'use client';
+
+import { useEffect } from 'react';
+import { useRouter } from 'next/navigation';
+export default function Page({
+ params,
+}: {
+ params: { entityType: string; entitySlug: string };
10
+}) {
11
+ const router = useRouter();
12
13
+ useEffect(() => {
14
+ router.push(`/dashboard/${params.entityType}/${params.entitySlug}/dataset?tab=drafts`);
15
+ }, [params, router]);
16
17
+ return null; // prevent rendering anything before redirect
18
+}
0 commit comments