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(entity): fix non-reactive display name usage (#1648)

Seamus04da43610e77
diff --git a/js/app/packages/entity/src/components/DisplayName.tsx b/js/app/packages/entity/src/components/DisplayName.tsx
index a101738dfb..5493fa8496 100644
--- a/js/app/packages/entity/src/components/DisplayName.tsx
+++ b/js/app/packages/entity/src/components/DisplayName.tsx
@@ -4,9 +4,8 @@ export function DisplayName(props: {
id: string;
format?: 'firstName' | 'lastName' | 'fullName';
}) {
- const parts = useDisplayNameParts(tryMacroId(props.id));
-
const name = () => {
+ const parts = useDisplayNameParts(tryMacroId(props.id));
const format = props.format ?? 'fullName';
if (format === 'fullName') {