refactor: update Page function to handle params as a Promise
This commit is contained in:
parent
562f67c5c0
commit
0176565dd2
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Reference in New Issue