Skip to content

Commit

Permalink
Merge branch 'main' into ms/fix-vale-issues
Browse files Browse the repository at this point in the history
  • Loading branch information
Meschreiber committed Jan 11, 2024
2 parents 4cabde2 + 239607f commit a9f127f
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/components/GlossaryPage/Results.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import CustomHighlight from '../Search/Highlight';
import EditOnGitHub from './EditOnGitHub';
import InlineCode from '../InlineCode';
import Markdown from 'react-markdown';
Expand Down Expand Up @@ -91,8 +92,8 @@ const Results = () => {
{hit.internalOnly && <span>🔒 </span>}
<Highlight attribute="term" hit={hit} />
</ClickableHeading>
{hit.labels &&
hit.labels.map(label => (
{hit._highlightResult.labels &&
hit._highlightResult.labels.map(label => (
<Tag
key={label}
size="md"
Expand All @@ -103,7 +104,9 @@ const Results = () => {
variant="outline"
borderRadius="md"
>
<TagLabel>{label}</TagLabel>
<TagLabel>
<CustomHighlight value={label.value} />
</TagLabel>
</Tag>
))}
</HStack>
Expand Down

0 comments on commit a9f127f

Please sign in to comment.