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", title: "Master Data - Bank",
}; };
export default async function Page({ params }: { params: { id: string } }) { export default async function Page({
const { id } = params; params,
}: {
params: Promise<{ id: string }>;
}) {
const { id } = await params;
return ( return (
<Protected> <Protected>