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',
|
'firstName',
|
||||||
'lastName',
|
'lastName',
|
||||||
]),
|
]),
|
||||||
{ email: { ilike: `%${commandMenuSearch}%` } },
|
...generateILikeFiltersForCompositeFields(
|
||||||
|
commandMenuSearch,
|
||||||
|
'emails',
|
||||||
|
['primaryEmail'],
|
||||||
|
),
|
||||||
{ phone: { ilike: `%${commandMenuSearch}%` } },
|
{ phone: { ilike: `%${commandMenuSearch}%` } },
|
||||||
])
|
])
|
||||||
: undefined,
|
: undefined,
|
||||||
|
|||||||
Reference in New Issue
Block a user