Skip to content

Commit e1815c4

Browse files
committed
fix: fix
1 parent a751221 commit e1815c4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/useWatch.test.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -397,7 +397,7 @@ describe('useWatch', () => {
397397
it('first undefined', () => {
398398
const errorSpy = jest.spyOn(console, 'error').mockImplementation(() => {});
399399
const Demo: React.FC = () => {
400-
const formRef = useRef<FormInstance>(null);
400+
const formRef = useRef<FormInstance>(undefined);
401401
const name = Form.useWatch('name', formRef.current);
402402
const [, setUpdate] = useState({});
403403
return (

0 commit comments

Comments
 (0)