refactor: update Page function to handle params as a Promise

This commit is contained in:
faisolavolut 2025-10-21 14:44:33 +07:00
parent 562f67c5c0
commit 0176565dd2
1 changed files with 6 additions and 2 deletions

View File

@ -7,8 +7,12 @@ export const metadata = {
title: "Master Data - Bank",
};
export default async function Page({ params }: { params: { id: string } }) {
const { id } = params;
export default async function Page({
params,
}: {
params: Promise<{ id: string }>;
}) {
const { id } = await params;
return (
<Protected>