diff --git a/frontend/src/lib/components/Breadcrumbs/Breadcrumbs.svelte b/frontend/src/lib/components/Breadcrumbs/Breadcrumbs.svelte index 5fc7d89a9..5675c0fb2 100644 --- a/frontend/src/lib/components/Breadcrumbs/Breadcrumbs.svelte +++ b/frontend/src/lib/components/Breadcrumbs/Breadcrumbs.svelte @@ -9,7 +9,7 @@ currentPath: string ): Promise { const idx = breadcrumbs.findIndex((c) => c.href === currentPath); - if (idx < breadcrumbs.length - 1) { + if (idx >= 0 && idx < breadcrumbs.length - 1) { breadcrumbs = breadcrumbs.slice(0, idx + 1); } return breadcrumbs;