Skip to content

Commit c175ade

Browse files
committed
Fix promised params
1 parent f2ae98d commit c175ade

File tree

1 file changed

+3
-5
lines changed
  • apps/database/app/table/[database]/[table]

1 file changed

+3
-5
lines changed

apps/database/app/table/[database]/[table]/page.tsx

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@
33
import { useRouter } from 'next/navigation';
44
import { useEffect, useState } from 'react';
55
import { DataTableView } from '@/components/data-table-view';
6-
import { TableControls } from '@/components/table-controls';
7-
import { TablePagination } from '@/components/table-pagination';
86
import { TableTabs } from '@/components/table-tabs';
97
import { TableTopbar } from '@/components/table-topbar';
108

@@ -26,12 +24,12 @@ interface TableStats {
2624
uncompressed_size: string;
2725
}
2826

29-
export default function TableDetail({
27+
export default async function TableDetail({
3028
params,
3129
}: {
32-
params: { database: string; table: string };
30+
params: Promise<{ database: string; table: string }>;
3331
}) {
34-
const { database, table } = params;
32+
const { database, table } = await params;
3533
const [data, setData] = useState<QueryResult | null>(null);
3634
const [stats, setStats] = useState<TableStats | null>(null);
3735
const [loading, setLoading] = useState(false);

0 commit comments

Comments
 (0)