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

@@ -59,8 +59,14 @@ const WolClientSettings = () => {
useEffect(() => {
if (wolClientsData && wolClientsIsFetched) {
setWolClients(
wolClientsData.filter((a: WolClient) =>
a.hostname.toLowerCase().includes((debouncedSearch as string).toLowerCase()),
wolClientsData.filter(
(a: WolClient) =>
a.hostname
.toLowerCase()
.includes((debouncedSearch as string).toLowerCase()) ||
a.macAddress
.toLowerCase()
.includes((debouncedSearch as string).toLowerCase()),
),
);
}