Skip to content

Commit

Permalink
ui: fix drag to zoom on custom charts
Browse files Browse the repository at this point in the history
This PR addresses the issue where a user creates a custom chart and
selects an area to zoom into leaves the grey highlight after the graph
zooms in. This was due to the history prop not being passed into the
linegraph component and caused an error to throw when updating the url
params. This was resolved by passing in the history to propogate to the
linegraph component.

Release note (ui change): fix drag to zoom on custom charts
  • Loading branch information
Santamaura committed Sep 14, 2021
1 parent b4ad7fe commit bd029e1
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -207,6 +207,7 @@ export class CustomChart extends React.Component<
key={index}
setTimeRange={this.props.setTimeRange}
setTimeScale={this.props.setTimeScale}
history={this.props.history}
>
<LineGraph>
<Axis units={units}>
Expand Down

0 comments on commit bd029e1

Please sign in to comment.