fix(striker-ui): default new network to migration in create manifest

main
Tsu-ba-me 1 year ago
parent 24c05e740c
commit 805a42b691
  1. 6
      striker-ui/components/ManageManifest/AnNetworkConfigInputGroup.tsx

@ -136,7 +136,11 @@ const AnNetworkConfigInputGroup = <
({
networkMinIp = '',
networkSubnetMask = '',
networkType = 'ifn',
networkType = networkListEntries.some(([, { networkType: nt }]) =>
assertMn(nt),
)
? 'ifn'
: 'mn',
// Params that depend on others.
networkGateway = assertIfn(networkType) ? '' : undefined,
networkNumber = getNetworkNumber(networkType) + 1,

Loading…
Cancel
Save