Skip to content

Commit 28c2089

Browse files
committed
fix params in resources page
1 parent 9fa07b6 commit 28c2089

File tree

1 file changed

+8
-4
lines changed
  • app/[locale]/dashboard/[entityType]/[entitySlug]/dataset/[id]/edit/resources

1 file changed

+8
-4
lines changed

app/[locale]/dashboard/[entityType]/[entitySlug]/dataset/[id]/edit/resources/page.tsx

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,11 @@ import { DistibutionPage } from './page-layout';
3131
// }
3232
// `);
3333

34-
export default async function Page({ params }: { params: { id: string } }) {
34+
export default async function Page({
35+
params,
36+
}: {
37+
params: { entityType: string; entitySlug: string; id: string };
38+
}) {
3539
const queryClient = getQueryClient();
3640
// await queryClient.prefetchQuery([`dataset_distribution_${params.id}`], () =>
3741
// GraphQL(datasetDistributionQueryDoc, {
@@ -42,9 +46,9 @@ export default async function Page({ params }: { params: { id: string } }) {
4246

4347
return (
4448
// <Hydrate state={dehydratedState}>
45-
<div className={styles.EditPage}>
46-
<DistibutionPage params={params} />
47-
</div>
49+
<div className={styles.EditPage}>
50+
<DistibutionPage params={params} />
51+
</div>
4852
// </Hydrate>
4953
);
5054
}

0 commit comments

Comments
 (0)