fix: Fix ip-distributer initial value
fix ip-distributer initial value Change-Id: I3c605ae0f4d4a69ad9beb6cf45680b18cd556703
This commit is contained in:
parent
e63243dbb4
commit
79c3fa5d8f
@ -23,7 +23,7 @@ const Item = ({ subnetsAvailable, onChange, value }) => {
|
|||||||
};
|
};
|
||||||
|
|
||||||
const [subnet, setSubnet] = useState(value.subnet);
|
const [subnet, setSubnet] = useState(value.subnet);
|
||||||
const [ip_address, setIP] = useState({ type: 'dhcp' });
|
const [ip_address, setIP] = useState(value.ip_address);
|
||||||
const [visible, setVisible] = useState(!!value.subnet || false);
|
const [visible, setVisible] = useState(!!value.subnet || false);
|
||||||
const subnetItem = subnetsAvailable.find((i) => i.id === subnet);
|
const subnetItem = subnetsAvailable.find((i) => i.id === subnet);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user