revert useEffect change

This commit is contained in:
SwiftyOS 2024-10-03 15:49:48 +02:00
parent 7194f099b9
commit d8518e86d4

View File

@ -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;
};