mirror of https://github.com/jetkvm/kvm.git
input fields now load previous values
This commit is contained in:
parent
6a6ab143a8
commit
313f78000e
|
@ -13,7 +13,7 @@ export interface UsbConfigState {
|
|||
product_id: string;
|
||||
serial_number: string;
|
||||
manufacturer: string;
|
||||
product_name: string;
|
||||
product: string;
|
||||
}
|
||||
|
||||
export default function USBConfigDialog({
|
||||
|
@ -171,7 +171,7 @@ function UpdateUsbConfigModal({
|
|||
required
|
||||
label="Product Name"
|
||||
placeholder="Enter Product Name"
|
||||
defaultValue={usbConfigState?.product_name}
|
||||
defaultValue={usbConfigState?.product}
|
||||
onChange={e => handleUsbProduct(e.target.value)}
|
||||
/>
|
||||
<div className="flex gap-x-2">
|
||||
|
|
Loading…
Reference in New Issue