Skip to content

Commit

Permalink
fix: dashboard items resize should trigger chart reload (#282)
Browse files Browse the repository at this point in the history
  • Loading branch information
edoardo authored and neeilya committed Apr 29, 2019
1 parent 08de917 commit 86070ae
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/plugin/src/ChartPlugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,8 @@ class ChartPlugin extends Component {
return;
}

if (this.props.id !== prevProps.id) {
// id set by DV app, style works in dashboards
if (this.props.id !== prevProps.id || !isEqual(this.props.style, prevProps.style)) {
this.recreateChart(0); // disable animation
return;
}
Expand Down

0 comments on commit 86070ae

Please sign in to comment.