Skip to content

Commit

Permalink
Fixed #441
Browse files Browse the repository at this point in the history
  • Loading branch information
mertsincan committed Jun 8, 2018
1 parent dde58cf commit d170ca8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/organizationchart/OrganizationChart.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ export class OrganizationChartNode extends Component {
}

static getDerivedStateFromProps(nextProps, prevState) {
if(nextProps.node.expanded !== prevState.expanded) {
if(nextProps.node.expanded && nextProps.node.expanded !== prevState.expanded) {
return {
expanded: nextProps.node.expanded
};
Expand Down

0 comments on commit d170ca8

Please sign in to comment.