Skip to content

Commit

Permalink
When checking if you should renderTriggered make sure key exists in c…
Browse files Browse the repository at this point in the history
…ontrols (apache#3912)
  • Loading branch information
michellethomas authored and Grace Guo committed Nov 21, 2017
1 parent e9b2758 commit 5da86db
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ class ExploreViewContainer extends React.Component {
}
// if any control value changed and it's an instant control
if (Object.keys(np.controls).some(key => (np.controls[key].renderTrigger &&
typeof this.props.controls[key] !== 'undefined' &&
!areObjectsEqual(np.controls[key].value, this.props.controls[key].value)))) {
this.props.actions.renderTriggered(new Date().getTime(), this.props.chart.chartKey);
}
Expand Down

0 comments on commit 5da86db

Please sign in to comment.