Fix sort with Email and FullName field types and add sort/filter to labelIdentifier column (#6132)

Fixes https://github.com/twentyhq/twenty/issues/5958

<img width="1088" alt="Screenshot 2024-07-04 at 16 23 25"
src="https://github.com/twentyhq/twenty/assets/1834158/746c45a4-7112-4322-8c26-04f3e98add06">

<img width="1280" alt="Screenshot 2024-07-04 at 16 15 39"
src="https://github.com/twentyhq/twenty/assets/1834158/9b9ecc60-9787-44a3-9ba7-0b33ec378e6f">
This commit is contained in:
Weiko
2024-07-05 17:01:47 +02:00
committed by GitHub
parent b33b468679
commit cc6ce142ce
4 changed files with 38 additions and 17 deletions

View File

@ -18,6 +18,8 @@ export const formatFieldMetadataItemsAsSortDefinitions = ({
FieldMetadataType.Boolean,
FieldMetadataType.Select,
FieldMetadataType.Phone,
FieldMetadataType.Email,
FieldMetadataType.FullName,
].includes(field.type)
) {
return acc;