fix: review changes

This commit is contained in:
Ramesh Mane
2024-01-13 07:47:33 +00:00
parent e2f30d9e90
commit 8ef48356d0
3 changed files with 12 additions and 24 deletions

View File

@@ -20,9 +20,7 @@ const filterCollaborators = computed(() => {
if (!collaborators.value) return []
return collaborators.value.filter((collab) =>
collab.display_name
? collab.display_name.toLowerCase().includes(userSearchText.value.toLowerCase())
: collab.email.toLowerCase().includes(userSearchText.value.toLowerCase()),
(collab.display_name || collab.email).toLowerCase().includes(userSearchText.value.toLowerCase()),
)
})