From 805a42b691c7b78d5a4df155e230eea71c6ba8e0 Mon Sep 17 00:00:00 2001 From: Tsu-ba-me Date: Wed, 20 Dec 2023 15:25:37 -0500 Subject: [PATCH] fix(striker-ui): default new network to migration in create manifest --- .../components/ManageManifest/AnNetworkConfigInputGroup.tsx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/striker-ui/components/ManageManifest/AnNetworkConfigInputGroup.tsx b/striker-ui/components/ManageManifest/AnNetworkConfigInputGroup.tsx index 60f77ba5..fd7f3004 100644 --- a/striker-ui/components/ManageManifest/AnNetworkConfigInputGroup.tsx +++ b/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,