mirror of
https://github.com/Nezumi-2711/next-gdrive-index.git
synced 2026-09-22 13:38:38 +00:00
fix: breadcrumb path missing last item because of pop()
This commit is contained in:
@@ -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 <ErrorComponent error={new Error("Failed to get current path")} />;
|
||||
|
||||
const Layout: React.FC<{
|
||||
|
||||
Reference in New Issue
Block a user