We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent aa40555 commit 293ef85Copy full SHA for 293ef85
src/components/search.js
@@ -31,7 +31,7 @@ const SearchResults = ({results, getItemProps, highlightedIndex}) => {
31
// don't all appear the same in the search results
32
const variant = getNav.getVariant(getNav.getVariantRoot(item.path), item.path)
33
const hierarchy = getNav.getItemBreadcrumbs(item.path)
34
- if (!variant || variant !== hierarchy[hierarchy.length - 1].shortName) {
+ if (!variant || variant !== hierarchy[hierarchy.length - 1]?.shortName) {
35
hierarchy.pop()
36
}
37
0 commit comments