fix: breadcrumb path missing last item because of pop()

This commit is contained in:
mbaharip
2025-01-26 03:20:41 +07:00
parent bf3f688fdd
commit 968b904579
+1 -1
View File
@@ -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<{