Skip to content

Commit

Permalink
fix(TreeSelect): 'key' undefined error without treeCheckable prop
Browse files Browse the repository at this point in the history
  • Loading branch information
myronliu347 committed Nov 16, 2018
1 parent 1600432 commit ca4afe5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/tree-select/tree-select.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,7 @@ export default class TreeSelect extends Component {

getData(value, forSelect) {
return value.reduce((ret, v) => {
const k = this._v2n[v].key;
const k = this._v2n[v] && this._v2n[v].key;
if (k) {
const { label, pos, disabled, checkboxDisabled } = this._k2n[k];
const d = {
Expand Down

0 comments on commit ca4afe5

Please sign in to comment.