|
|
@ -552,18 +552,10 @@ const NetworkInitForm: FC = () => { |
|
|
|
networkInterface={networkInterface} |
|
|
|
networkInterface={networkInterface} |
|
|
|
onClose={() => { |
|
|
|
onClose={() => { |
|
|
|
interfaces[networkInterfaceIndex] = undefined; |
|
|
|
interfaces[networkInterfaceIndex] = undefined; |
|
|
|
|
|
|
|
|
|
|
|
networkInterfaceInputMap[ |
|
|
|
networkInterfaceInputMap[ |
|
|
|
networkInterfaceUUID |
|
|
|
networkInterfaceUUID |
|
|
|
].isApplied = false; |
|
|
|
].isApplied = false; |
|
|
|
|
|
|
|
|
|
|
|
if ( |
|
|
|
|
|
|
|
isNetworkOptional && |
|
|
|
|
|
|
|
interfaces.length === 0 |
|
|
|
|
|
|
|
) { |
|
|
|
|
|
|
|
networkInputs.splice(networkIndex, 1); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
setNetworkInterfaceInputMap({ |
|
|
|
setNetworkInterfaceInputMap({ |
|
|
|
...networkInterfaceInputMap, |
|
|
|
...networkInterfaceInputMap, |
|
|
|
}); |
|
|
|
}); |
|
|
|