-
-
Notifications
You must be signed in to change notification settings - Fork 3.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
表单组件设置值时,遇到null时报错 #153
Comments
麻烦给出复现链接 |
please update to 1.1.0 |
This thread has been automatically locked because it has not had recent activity. Please open a new issue for related bugs and link to relevant comments in this thread. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Version
1.0.3
Environment
1.0.3
Reproduction link
Steps to reproduce
后台返回的数据在form中没有对应的item的情况,如下:
formdata:{'name':'zhangsan','age':17,'guid':null}
(后台返回的数据比较多,有些项目不需要展示出来)
这时表单中没有GUID这一项,用这个数据调用 setFieldsValue 时报错
错误信息: Cannot convert undefined or null to object"
What is expected?
麻烦处理一下null值,按空值处理
What is actually happening?
报错,form不能正常显示出来数据
The text was updated successfully, but these errors were encountered: