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.
1 parent 775e317 commit 7a8dba4Copy full SHA for 7a8dba4
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