fix: Correction in the list of users when there is no value in the client_id field

This commit is contained in:
marcio1002 2023-10-26 18:24:43 -03:00
parent f896ad485a
commit 14af22ff30

View File

@ -148,7 +148,7 @@ function sortedClients(client, search: string) {
.map(client => ({
...client,
name: sanitizeStringSearch(client.name),
client_id: sanitizeStringSearch(String(client.client_id))
client_id: sanitizeStringSearch(String(client.client_id ?? ""))
}))
.filter((client) => client.name.includes(search) || client.client_id.includes(search))
}