Skip to content

Commit

Permalink
Merge pull request #5441 from nextcloud-libraries/fix/hidden-breadcru…
Browse files Browse the repository at this point in the history
…mbs-update

fix(NcBreadcrumbs): Only render existing hidden breadcrumbs
  • Loading branch information
Pytal committed Mar 27, 2024
2 parents 0c22424 + 28db49f commit 95f20e8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/NcBreadcrumbs/NcBreadcrumbs.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 95f20e8

Please sign in to comment.