Search updates

This commit is contained in:
Sean Edmunds
2025-12-30 11:24:58 -06:00
parent 9b5bf901d5
commit 0df4f28f40
5 changed files with 21 additions and 8 deletions

View File

@@ -64,8 +64,14 @@ const GuacamoleClients = () => {
useEffect(() => {
if (guacamoleClientsData && guacamoleClientsIsFetched) {
setGuacamoleClients(
guacamoleClientsData.filter((a: GuacamoleClient) =>
a.clientName.toLowerCase().includes((debouncedSearch as string).toLowerCase()),
guacamoleClientsData.filter(
(a: GuacamoleClient) =>
a.clientName
.toLowerCase()
.includes((debouncedSearch as string).toLowerCase()) ||
a.clientIdentifier
.toLowerCase()
.includes((debouncedSearch as string).toLowerCase()),
),
);
}