We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e6eeb7e commit cc613c9Copy full SHA for cc613c9
components/tree-select/index.jsx
@@ -58,7 +58,7 @@ export default {
58
// label: newLabel,
59
title: newTitle || newLabel,
60
}
61
- this.updateTreeData(children)
+ this.updateTreeData(children || [])
62
Object.assign(list[i], item)
63
64
},
@@ -72,7 +72,7 @@ export default {
72
dropdownClassName,
73
...restProps
74
} = props
75
- this.updateTreeData(props.treeData)
+ this.updateTreeData(props.treeData || [])
76
const cls = {
77
[`${prefixCls}-lg`]: size === 'large',
78
[`${prefixCls}-sm`]: size === 'small',
0 commit comments