Skip to content

armgit / macro

Public Imported from GitHub
0

Macro is a unified workspace for teams: email, chat, docs, tasks, agents, calls, and CRM — @-linked together with shared AI memory.

fix(search): render name highlight when not on first result (#2740)

gbirman6415c492dbf1
diff --git a/js/app/packages/queries/soup/transform-utils.ts b/js/app/packages/queries/soup/transform-utils.ts
index 3e4a457092..86df4639c2 100644
--- a/js/app/packages/queries/soup/transform-utils.ts
+++ b/js/app/packages/queries/soup/transform-utils.ts
@@ -138,7 +138,8 @@ const getSearchData = (data: TypedInnerSearchResult): SearchData => {
}
}
- const nameHighlight = data.results.at(0)?.highlight.name ?? null;
+ const nameHighlight =
+ data.results.find((r) => r.highlight.name)?.highlight.name ?? null;
let senderHighlightTerms: string[] | null = null;
if (data.type === 'email') {