data-mapping-component
data-mapping-component copied to clipboard
Cannot read properties of undefined (reading 'disable')
source 和 target 更新的时候,我使用的是状态存储的,偶尔会出现这样的错误
具体代码是这里
if (newFields && newField.disable !== oldField.disable)
这个是oldField为undefined才会抛这个错误么?
不是很确定,目前我是销毁组件的方式来避开这个错误的
能提供一个最小复现demo么?