Skip to content

Commit 12ce5cf

Browse files
committed
Fix more awaited params
1 parent c175ade commit 12ce5cf

File tree

1 file changed

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

1 file changed

+3
-3
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -157,12 +157,12 @@ const TRANSFORMATION_MAP: Record<
157157
},
158158
};
159159

160-
export default function TableSchemaPage({
160+
export default async function TableSchemaPage({
161161
params,
162162
}: {
163-
params: { database: string; table: string };
163+
params: Promise<{ database: string; table: string }>;
164164
}) {
165-
const { database, table } = params;
165+
const { database, table } = await params;
166166
const [columns, setColumns] = useState<ColumnInfo[]>([]);
167167
const [tableInfo, setTableInfo] = useState<TableInfo | null>(null);
168168
const [loading, setLoading] = useState(false);

0 commit comments

Comments
 (0)