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: add document subtype to search mapper (#837)

gbirman751d6d34f180
diff --git a/js/app/packages/macro-entity/src/queries/search.ts b/js/app/packages/macro-entity/src/queries/search.ts
index d3422fb333..0b7f52b199 100644
--- a/js/app/packages/macro-entity/src/queries/search.ts
+++ b/js/app/packages/macro-entity/src/queries/search.ts
@@ -194,6 +194,7 @@ const useMapSearchResponseItem = () => {
}
return {
type: 'document',
+ subType: result.sub_type ?? undefined,
id: result.document_id,
name: result.name || blockNameToDefaultFile(result.file_type),
ownerId: result.owner_id,