Skip to content

Commit

Permalink
fix: treeSelect treeData[i].children support null #81
Browse files Browse the repository at this point in the history
  • Loading branch information
tangjinzhou committed Jul 25, 2018
1 parent e6eeb7e commit cc613c9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions components/tree-select/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ export default {
// label: newLabel,
title: newTitle || newLabel,
}
this.updateTreeData(children)
this.updateTreeData(children || [])
Object.assign(list[i], item)
}
},
Expand All @@ -72,7 +72,7 @@ export default {
dropdownClassName,
...restProps
} = props
this.updateTreeData(props.treeData)
this.updateTreeData(props.treeData || [])
const cls = {
[`${prefixCls}-lg`]: size === 'large',
[`${prefixCls}-sm`]: size === 'small',
Expand Down

0 comments on commit cc613c9

Please sign in to comment.