We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4c7bc9f commit c8f5927Copy full SHA for c8f5927
src/functions/algoliaResponse.ts
@@ -45,8 +45,7 @@ export async function algoliaResponse(
45
46
const contentParts = [
47
`<:${emojiName}:${emojiId}> ${bold(resolveHitToNamestring(hit))}${headlineSuffix ? ` ${headlineSuffix}` : ''}`,
48
- hit.content?.length ? `${truncate(decode(hit.content), 300)}` : null,
49
- docsBody?.lines.length ? docsBody.lines.at(0) : null,
+ hit.content?.length ? `${truncate(decode(hit.content), 300)}` : docsBody?.lines.at(0),
50
`${hyperlink('read more', hideLinkEmbed(hit.url))}`,
51
].filter(Boolean) as string[];
52
0 commit comments