The open alternative to Salesforce, designed for AI.
TypeScript crmcrm-systemcustomergood-first-issuegraphqlhacktoberfestjavascriptmarketingmonoreponestjsopen-sourcepostgresqlreactreactjssalestypescriptweb
[PeoplePicker] fix missing avatar in user search dropdown (#1069)
Weiko43f20ebf74a4
diff --git a/front/src/modules/people/components/PeoplePicker.tsx b/front/src/modules/people/components/PeoplePicker.tsxindex a6f11776cc5..498668b2025 100644--- a/front/src/modules/people/components/PeoplePicker.tsx+++ b/front/src/modules/people/components/PeoplePicker.tsx@@ -30,6 +30,7 @@ export function PeoplePicker({ personId, onSubmit, onCancel }: OwnProps) {id: person.id,name: person.firstName + ' ' + person.lastName,avatarType: 'rounded',+ avatarUrl: person.avatarUrl ?? '',}),orderByField: 'firstName',searchOnFields: ['firstName', 'lastName'],diff --git a/front/src/modules/users/components/FilterDropdownUserSearchSelect.tsx b/front/src/modules/users/components/FilterDropdownUserSearchSelect.tsxindex 82bb86b38c1..0067ade8600 100644--- a/front/src/modules/users/components/FilterDropdownUserSearchSelect.tsx+++ b/front/src/modules/users/components/FilterDropdownUserSearchSelect.tsx@@ -36,6 +36,7 @@ export function FilterDropdownUserSearchSelect({entityType: Entity.User,name: `${entity.displayName}`,avatarType: 'rounded',+ avatarUrl: entity.avatarUrl ?? '',}),searchFilter: filterDropdownSearchInput,});