Hello all,
I am currently trying to search for a user via email and have it appear in the table. The query returns a successful response but the table doesn't update. I tried adding the following query to the table {{ searchUserEmail.data }}
I tried to do something like this in the query with no success {{ searchUserEmail.value.length > 0 ? searchUserEmail.data : listUsers.data.users}}
If anyone has any ideas I would appreciate it!
Hey @Isis_Curiel!
Can you try {{ [ searchUserEmail.data ] }}
? Tables expect one of two formats:
Array of objects:
[
{ email: 'curielisis@gmail.com', emailVerified: true },
{ email: 'otheremail@gmail.com', emailVerified: false }
]
Object of arrays:
{
email: ['curielisis@gmail.com', 'otheremail@gmail.com'],
emailVerified: [true, false]
}
It looks like {{ [ searchUserEmail.data ] }}
will fit the array of objects format
That worked! I didn't even realize that!!