From 28db49fd623bde3dae6bc8f2f2117e7ac35136ab Mon Sep 17 00:00:00 2001 From: Christopher Ng Date: Mon, 25 Mar 2024 11:43:58 -0700 Subject: [PATCH] fix(NcBreadcrumbs): Only render existing hidden breadcrumbs Signed-off-by: Christopher Ng --- src/components/NcBreadcrumbs/NcBreadcrumbs.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/NcBreadcrumbs/NcBreadcrumbs.vue b/src/components/NcBreadcrumbs/NcBreadcrumbs.vue index cb528a7736..71e7c39427 100644 --- a/src/components/NcBreadcrumbs/NcBreadcrumbs.vue +++ b/src/components/NcBreadcrumbs/NcBreadcrumbs.vue @@ -582,7 +582,7 @@ export default { }, }, // Add all hidden breadcrumbs as ActionRouter or ActionLink - }, this.hiddenIndices.map(index => { + }, this.hiddenIndices.filter(index => index <= breadcrumbs.length - 1).map(index => { const crumb = breadcrumbs[index] // Get the parameters from the breadcrumb component props const to = crumb.componentOptions.propsData.to