Skip to content

Commit 3003196

Browse files
authored
Update ChartControl.tsx
The _initChart function is not initialising the chart options properly. The options passed as a parameter are never used in the function which means that, when the function is being called from ChartControl.componentWillReceiveProps, the control is never updated with the new properties but it will use the old properties instead.
1 parent 66f0362 commit 3003196

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/controls/chartControl/ChartControl.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -284,7 +284,7 @@ export class ChartControl extends React.Component<IChartControlProps, IChartCont
284284
type,
285285
plugins,
286286
useTheme
287-
} = this.props;
287+
} = props;
288288

289289
// add event handlers -- if they weren't already provided through options
290290
if (this.props.onClick !== undefined) {

0 commit comments

Comments
 (0)