docs: Fix demo (#22569)

This commit is contained in:
二货机器人 2020-03-24 21:46:09 +08:00 committed by GitHub
parent c7add36de6
commit f8a342f415
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -32,7 +32,7 @@ interface ModalFormProps {
} }
// reset form fields when modal is form, closed // reset form fields when modal is form, closed
const useResetFormOnCloseModal = ({ visible }) => { const useResetFormOnCloseModal = ({ form, visible }) => {
const prevVisibleRef = useRef(); const prevVisibleRef = useRef();
useEffect(() => { useEffect(() => {
prevVisibleRef.current = visible; prevVisibleRef.current = visible;