We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 775e317 + 7a8dba4 commit d270b37Copy full SHA for d270b37
src/components/Search/index.tsx
@@ -117,10 +117,8 @@ const Search = forwardRef<Props, "button">(
117
items.map((item: DocSearchHit) => {
118
const newItem: DocSearchHit = structuredClone(item)
119
newItem.url = sanitizeHitUrl(item.url)
120
- const newTitle = sanitizeHitTitle(
121
- item._highlightResult.hierarchy.lvl0?.value || ""
122
- )
123
- newItem._highlightResult.hierarchy.lvl0.value = newTitle
+ const newTitle = sanitizeHitTitle(item.hierarchy.lvl0 || "")
+ newItem.hierarchy.lvl0 = newTitle
124
return newItem
125
})
126
}
0 commit comments