Skip to content

Commit

Permalink
Merge pull request #429 from Kitware/fix-git-tree
Browse files Browse the repository at this point in the history
fix(GitTreeWidget): Fix single select bug
  • Loading branch information
jourdain authored Feb 13, 2018
2 parents c39c891 + 888b14a commit 82c1d93
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/React/Widgets/GitTreeWidget/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,8 @@ export default class GitTreeWidget extends React.Component {
}
this.setState({ actives });
} else {
this.setState({ actives: [yVal] });
actives[0] = yVal;
this.setState({ actives });
}

if (this.props.onChange) {
Expand Down

0 comments on commit 82c1d93

Please sign in to comment.