Skip to content

Commit

Permalink
fix: fix
Browse files Browse the repository at this point in the history
  • Loading branch information
li-jia-nan committed Jan 13, 2025
1 parent a751221 commit e1815c4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/useWatch.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -397,7 +397,7 @@ describe('useWatch', () => {
it('first undefined', () => {
const errorSpy = jest.spyOn(console, 'error').mockImplementation(() => {});
const Demo: React.FC = () => {
const formRef = useRef<FormInstance>(null);
const formRef = useRef<FormInstance>(undefined);
const name = Form.useWatch('name', formRef.current);
const [, setUpdate] = useState({});
return (
Expand Down

0 comments on commit e1815c4

Please sign in to comment.