diff --git a/src/components/ValidateCodeActionModal/index.tsx b/src/components/ValidateCodeActionModal/index.tsx index f2063f7926f4..b3b14927035a 100644 --- a/src/components/ValidateCodeActionModal/index.tsx +++ b/src/components/ValidateCodeActionModal/index.tsx @@ -40,6 +40,7 @@ function ValidateCodeActionModal({ const hide = useCallback(() => { clearError(); onClose?.(); + firstRenderRef.current = true; }, [onClose, clearError]); useEffect(() => {