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
|
||||
}, [credentialNames])
|
||||
|
||||
useEffect(() => {
|
||||
setInternalValue(value)
|
||||
}, [value])
|
||||
|
||||
return (
|
||||
<>
|
||||
<Autocomplete
|
||||
|
|
|
|||
|
|
@ -48,12 +48,6 @@ export const Input = ({ inputParam, value, nodes, edges, nodeId, onChange, disab
|
|||
}
|
||||
}, [myValue])
|
||||
|
||||
useEffect(() => {
|
||||
if (value) {
|
||||
setMyValue(value)
|
||||
}
|
||||
}, [value])
|
||||
|
||||
return (
|
||||
<>
|
||||
{inputParam.name === 'note' ? (
|
||||
|
|
|
|||
Loading…
Reference in New Issue