Revert useEffect in async dropdown and input components
This commit is contained in:
parent
7e84268f0d
commit
e55975ec7f
|
|
@ -107,10 +107,6 @@ export const AsyncDropdown = ({
|
||||||
// eslint-disable-next-line react-hooks/exhaustive-deps
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
||||||
}, [credentialNames])
|
}, [credentialNames])
|
||||||
|
|
||||||
useEffect(() => {
|
|
||||||
setInternalValue(value)
|
|
||||||
}, [value])
|
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
<Autocomplete
|
<Autocomplete
|
||||||
|
|
|
||||||
|
|
@ -48,12 +48,6 @@ export const Input = ({ inputParam, value, nodes, edges, nodeId, onChange, disab
|
||||||
}
|
}
|
||||||
}, [myValue])
|
}, [myValue])
|
||||||
|
|
||||||
useEffect(() => {
|
|
||||||
if (value) {
|
|
||||||
setMyValue(value)
|
|
||||||
}
|
|
||||||
}, [value])
|
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
{inputParam.name === 'note' ? (
|
{inputParam.name === 'note' ? (
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue