Skip to content
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

Cannot read properties of undefined (reading 'disable') #50

Open
m1666 opened this issue Jun 29, 2022 · 3 comments
Open

Cannot read properties of undefined (reading 'disable') #50

m1666 opened this issue Jun 29, 2022 · 3 comments

Comments

@m1666
Copy link

m1666 commented Jun 29, 2022

source 和 target 更新的时候,我使用的是状态存储的,偶尔会出现这样的错误
具体代码是这里
if (newFields && newField.disable !== oldField.disable)
image

image

@noonnightstorm
Copy link
Collaborator

这个是oldField为undefined才会抛这个错误么?

@m1666
Copy link
Author

m1666 commented Jul 4, 2022

不是很确定,目前我是销毁组件的方式来避开这个错误的

@noonnightstorm
Copy link
Collaborator

能提供一个最小复现demo么?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants