Compare commits

...

1 Commits

Author SHA1 Message Date
SwiftyOS
d8518e86d4 revert useEffect change 2024-10-03 15:49:48 +02:00

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