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 9eca07e commit 2c983f9Copy full SHA for 2c983f9
src/components/Search.tsx
@@ -13,7 +13,7 @@ import { useAppState } from '@/providers/AppState'
13
14
const SearchResult = ({ hit, active }: { hit: SearchHit; active?: boolean }) => {
15
const { result, parents } = useMemo(() => {
16
- const hierarchy = Object.entries(hit.hierarchy)
+ const hierarchy = Object.entries(hit.hierarchy).filter((h) => !!h[1])
17
const result = hierarchy.at(-1)
18
const parents = hierarchy.slice(0, -1)
19
0 commit comments