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 [tasks] - route task entity pills to task instead of md (#541)

Daniel Kweon3e32cdc06cdf
diff --git a/js/app/packages/core/component/Properties/hooks/usePropertyEntityDisplay.tsx b/js/app/packages/core/component/Properties/hooks/usePropertyEntityDisplay.tsx
index 406a9ce844..c3c7d6a8f7 100644
--- a/js/app/packages/core/component/Properties/hooks/usePropertyEntityDisplay.tsx
+++ b/js/app/packages/core/component/Properties/hooks/usePropertyEntityDisplay.tsx
@@ -188,6 +188,11 @@ export function usePropertyEntityDisplay(
return type.toLowerCase();
}
+ // Tasks are aliased as 'task' for routing
+ if (type === 'TASK') {
+ return 'task';
+ }
+
// For documents, get the file type from preview
if (type === 'DOCUMENT') {
const previewItem = preview();
@@ -198,6 +203,10 @@ export function usePropertyEntityDisplay(
) {
return null;
}
+ // Tasks are documents with subType 'task'
+ if (previewItem.subType === 'task') {
+ return 'task';
+ }
return previewItem.fileType || null;
}