|
|
@ -51,7 +51,7 @@ const AnNetworkConfigInputGroup = < |
|
|
|
buildFinishInputTestBatchFunction, |
|
|
|
buildFinishInputTestBatchFunction, |
|
|
|
buildInputFirstRenderFunction, |
|
|
|
buildInputFirstRenderFunction, |
|
|
|
setMessage, |
|
|
|
setMessage, |
|
|
|
unsetKeyRe, |
|
|
|
setMessageRe, |
|
|
|
} = formUtils; |
|
|
|
} = formUtils; |
|
|
|
|
|
|
|
|
|
|
|
const getNetworkNumber = useCallback( |
|
|
|
const getNetworkNumber = useCallback( |
|
|
@ -140,8 +140,8 @@ const AnNetworkConfigInputGroup = < |
|
|
|
|
|
|
|
|
|
|
|
if (networkId === targetId) { |
|
|
|
if (networkId === targetId) { |
|
|
|
isIdMatch = true; |
|
|
|
isIdMatch = true; |
|
|
|
|
|
|
|
|
|
|
|
networkType = newType; |
|
|
|
networkType = newType; |
|
|
|
|
|
|
|
setMessageRe(RegExp(networkId)); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
const isTypeMatch = networkType === newType; |
|
|
|
const isTypeMatch = networkType === newType; |
|
|
@ -173,7 +173,7 @@ const AnNetworkConfigInputGroup = < |
|
|
|
|
|
|
|
|
|
|
|
setNetworkList(newList); |
|
|
|
setNetworkList(newList); |
|
|
|
}, |
|
|
|
}, |
|
|
|
[networkListEntries, setNetworkList], |
|
|
|
[networkListEntries, setMessageRe, setNetworkList], |
|
|
|
); |
|
|
|
); |
|
|
|
|
|
|
|
|
|
|
|
const handleNetworkRemove = useCallback<AnNetworkCloseEventHandler>( |
|
|
|
const handleNetworkRemove = useCallback<AnNetworkCloseEventHandler>( |
|
|
@ -185,8 +185,6 @@ const AnNetworkConfigInputGroup = < |
|
|
|
(previous, [networkId, networkValue]) => { |
|
|
|
(previous, [networkId, networkValue]) => { |
|
|
|
if (networkId === rmId) { |
|
|
|
if (networkId === rmId) { |
|
|
|
isIdMatch = true; |
|
|
|
isIdMatch = true; |
|
|
|
|
|
|
|
|
|
|
|
unsetKeyRe(RegExp(rmId)); |
|
|
|
|
|
|
|
} else { |
|
|
|
} else { |
|
|
|
const { networkType } = networkValue; |
|
|
|
const { networkType } = networkValue; |
|
|
|
|
|
|
|
|
|
|
@ -206,7 +204,7 @@ const AnNetworkConfigInputGroup = < |
|
|
|
|
|
|
|
|
|
|
|
setNetworkList(newList); |
|
|
|
setNetworkList(newList); |
|
|
|
}, |
|
|
|
}, |
|
|
|
[networkListEntries, setNetworkList, unsetKeyRe], |
|
|
|
[networkListEntries, setNetworkList], |
|
|
|
); |
|
|
|
); |
|
|
|
|
|
|
|
|
|
|
|
const networksGridLayout = useMemo<GridLayout>(() => { |
|
|
|
const networksGridLayout = useMemo<GridLayout>(() => { |
|
|
|