Revert useEffect in async dropdown and input components

This commit is contained in:
Ilango 2024-02-23 18:40:58 +05:30
parent 7e84268f0d
commit e55975ec7f
2 changed files with 0 additions and 10 deletions

View File

@ -107,10 +107,6 @@ export const AsyncDropdown = ({
// eslint-disable-next-line react-hooks/exhaustive-deps
}, [credentialNames])
useEffect(() => {
setInternalValue(value)
}, [value])
return (
<>
<Autocomplete

View File

@ -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' ? (