Skip to content

Commit

Permalink
Better update trigger on plot
Browse files Browse the repository at this point in the history
  • Loading branch information
andreiggr committed Jan 7, 2022
1 parent 75f4fa1 commit 4ce1c99
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Widget/ChartEditor.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ class Edit extends Component {
LoadableCustomEditor.preload();
}

componentDidUpdate() {
handleUpdatePlot() {
const el = document.getElementById('gd');

if (
Expand Down Expand Up @@ -241,6 +241,7 @@ class Edit extends Component {
frames,
};
this.props.onChangeValue(newVal);
this.handleUpdatePlot();
}}
chartHelp={chartHelp}
showFieldTooltips
Expand Down

0 comments on commit 4ce1c99

Please sign in to comment.