FieldDisplay & FieldInput (#1708)
* Removed view field duplicate types * wip * wip 2 * wip 3 * Unified state for fields * Renaming * Wip * Post merge * Post post merge * wip * Delete unused file * Boolean and Probability * Finished InlineCell * Renamed EditableCell to TableCell * Finished double texts * Finished MoneyField * Fixed bug inline cell click outside * Fixed hotkey scope * Final fixes * Phone * Fix url and number input validation * Fix * Fix position * wip refactor activity editor * Fixed activity editor --------- Co-authored-by: Charles Bochet <charles@twenty.com>
This commit is contained in:
@ -33,12 +33,13 @@ export const FilterDropdownUserSearchSelect = ({
|
||||
},
|
||||
],
|
||||
orderByField: 'lastName',
|
||||
mappingFunction: (entity) => ({
|
||||
id: entity.id,
|
||||
mappingFunction: (user) => ({
|
||||
id: user.id,
|
||||
entityType: Entity.User,
|
||||
name: `${entity.displayName}`,
|
||||
name: `${user.displayName}`,
|
||||
avatarType: 'rounded',
|
||||
avatarUrl: entity.avatarUrl ?? '',
|
||||
avatarUrl: user.avatarUrl ?? '',
|
||||
originalEntity: user,
|
||||
}),
|
||||
selectedIds: filterDropdownSelectedEntityId
|
||||
? [filterDropdownSelectedEntityId]
|
||||
|
||||
@ -43,6 +43,7 @@ export const UserPicker = ({
|
||||
name: user.displayName,
|
||||
avatarType: 'rounded',
|
||||
avatarUrl: user.avatarUrl ?? '',
|
||||
originalEntity: user,
|
||||
}),
|
||||
selectedIds: userId ? [userId] : [],
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user