WoL bugfix
This commit is contained in:
@@ -6,10 +6,12 @@ import type { WolClient } from 'types';
|
||||
function WakeOnLan({
|
||||
wolClients,
|
||||
selectedClient,
|
||||
setSelectedClient,
|
||||
handleWakeRequest,
|
||||
}: {
|
||||
wolClients: WolClient[];
|
||||
selectedClient: WolClient | null;
|
||||
setSelectedClient: any;
|
||||
handleWakeRequest: () => void;
|
||||
}) {
|
||||
return (
|
||||
@@ -37,6 +39,12 @@ function WakeOnLan({
|
||||
labelProps={{ display: 'none' }}
|
||||
placeholder='Pick a host...'
|
||||
defaultValue={wolClients?.[0]?.hostname}
|
||||
onChange={(_, option: any) => {
|
||||
setSelectedClient({
|
||||
hostname: option?.hostname,
|
||||
macAddress: option?.macAddress,
|
||||
});
|
||||
}}
|
||||
data={
|
||||
wolClients
|
||||
?.map((wolClient: WolClient) => {
|
||||
|
||||
Reference in New Issue
Block a user