mirror of
https://github.com/lingble/twenty.git
synced 2025-10-29 20:02:29 +00:00
Fix search on email (#7094)
following email (text field type) -> emails (emails field type - composite) migration! closes https://github.com/twentyhq/twenty/issues/7080
This commit is contained in:
@@ -174,7 +174,11 @@ export const CommandMenu = () => {
|
||||
'firstName',
|
||||
'lastName',
|
||||
]),
|
||||
{ email: { ilike: `%${commandMenuSearch}%` } },
|
||||
...generateILikeFiltersForCompositeFields(
|
||||
commandMenuSearch,
|
||||
'emails',
|
||||
['primaryEmail'],
|
||||
),
|
||||
{ phone: { ilike: `%${commandMenuSearch}%` } },
|
||||
])
|
||||
: undefined,
|
||||
|
||||
Reference in New Issue
Block a user