diff --git a/src/app/[...rest]/page.tsx b/src/app/[...rest]/page.tsx index 427cae9..5b2f3c9 100644 --- a/src/app/[...rest]/page.tsx +++ b/src/app/[...rest]/page.tsx @@ -69,7 +69,7 @@ export default async function RestPage({ params }: Props) { ); } - const currentPath = paths.data.pop(); + const currentPath = paths.data[paths.data.length - 1]; if (!currentPath) return ; const Layout: React.FC<{