feat: filter people in CommandMenu via last name, email and phone (#3997)
This commit is contained in:
@ -139,7 +139,9 @@ export const CommandMenu = () => {
|
|||||||
filter: search
|
filter: search
|
||||||
? makeOrFilterVariables([
|
? makeOrFilterVariables([
|
||||||
{ name: { firstName: { ilike: `%${search}%` } } },
|
{ name: { firstName: { ilike: `%${search}%` } } },
|
||||||
{ name: { firstName: { ilike: `%${search}%` } } },
|
{ name: { lastName: { ilike: `%${search}%` } } },
|
||||||
|
{ email: { ilike: `%${search}%` } },
|
||||||
|
{ phone: { ilike: `%${search}%` } },
|
||||||
])
|
])
|
||||||
: undefined,
|
: undefined,
|
||||||
limit: 3,
|
limit: 3,
|
||||||
|
|||||||
Reference in New Issue
Block a user