fix(striker-ui): remove unused form validity flags in manifest network config

main
Tsu-ba-me 2 years ago
parent de5ae58c7e
commit 23ddce9cec
  1. 5
      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<GridLayout>(() => {

Loading…
Cancel
Save