fix(secrets-permissions): Fix setTimeout

This commit is contained in:
carlosmonastyrski
2025-04-24 11:15:42 -03:00
parent 350272aa57
commit b377d2a6b1

View File

@@ -126,9 +126,10 @@ export const SecretEditRow = ({
}
}
if (secretValueHidden) {
setTimeout(() => {
const resetTimeout = setTimeout(() => {
reset({ value: defaultValue || null });
}, 0);
}, 50);
clearTimeout(resetTimeout);
setIsSecretBlurFocus.off();
} else {
reset({ value });