mirror of
https://github.com/Significant-Gravitas/Auto-GPT.git
synced 2025-01-08 11:57:32 +08:00
revert useEffect change
This commit is contained in:
parent
7194f099b9
commit
d8518e86d4
@ -314,13 +314,9 @@ const NodeCredentialsInput: FC<{
|
||||
|
||||
const InputRef = (value: any): React.RefObject<HTMLInputElement> => {
|
||||
const inputRef = React.useRef<HTMLInputElement>(null);
|
||||
|
||||
useEffect(() => {
|
||||
if (inputRef.current && value && inputRef.current.value !== value) {
|
||||
inputRef.current.value = value;
|
||||
}
|
||||
}, [value]);
|
||||
|
||||
if (inputRef.current && value && inputRef.current.value !== value) {
|
||||
inputRef.current.value = value;
|
||||
}
|
||||
return inputRef;
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user