From 23ddce9cec5ef47efc5876a297e732ee44eb3e5b Mon Sep 17 00:00:00 2001 From: Tsu-ba-me Date: Thu, 30 Mar 2023 17:34:55 -0400 Subject: [PATCH] fix(striker-ui): remove unused form validity flags in manifest network config --- .../components/ManageManifest/AnNetworkConfigInputGroup.tsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/striker-ui/components/ManageManifest/AnNetworkConfigInputGroup.tsx b/striker-ui/components/ManageManifest/AnNetworkConfigInputGroup.tsx index 28cdfd8a..827972e0 100644 --- a/striker-ui/components/ManageManifest/AnNetworkConfigInputGroup.tsx +++ b/striker-ui/components/ManageManifest/AnNetworkConfigInputGroup.tsx @@ -51,6 +51,7 @@ const AnNetworkConfigInputGroup = < buildFinishInputTestBatchFunction, buildInputFirstRenderFunction, msgSetters, + setValidityRe, } = formUtils; const getNetworkNumber = useCallback( @@ -184,6 +185,8 @@ const AnNetworkConfigInputGroup = < (previous, [networkId, networkValue]) => { if (networkId === rmId) { isIdMatch = true; + + setValidityRe(RegExp(rmId)); } else { const { networkType } = networkValue; @@ -203,7 +206,7 @@ const AnNetworkConfigInputGroup = < setNetworkList(newList); }, - [networkListEntries, setNetworkList], + [networkListEntries, setNetworkList, setValidityRe], ); const networksGridLayout = useMemo(() => {