Commit b9612aaa by Torkel Ödegaard

minor code style change

parent 9393b061
...@@ -45,24 +45,15 @@ export class Graph2 extends PureComponent<Props> { ...@@ -45,24 +45,15 @@ export class Graph2 extends PureComponent<Props> {
export class GraphOptions extends PureComponent<PanelOptionsProps<Options>> { export class GraphOptions extends PureComponent<PanelOptionsProps<Options>> {
onToggleLines = () => { onToggleLines = () => {
this.props.onChange({ this.props.onChange({ showLines: !this.props.options.showLines, ...this.props.options });
...this.props.options,
showLines: !this.props.options.showLines,
});
}; };
onToggleBars = () => { onToggleBars = () => {
this.props.onChange({ this.props.onChange({ showBars: !this.props.options.showBars, ...this.props.options });
...this.props.options,
showBars: !this.props.options.showBars,
});
}; };
onTogglePoints = () => { onTogglePoints = () => {
this.props.onChange({ this.props.onChange({ showPoints: !this.props.options.showPoints, ...this.props.options });
...this.props.options,
showPoints: !this.props.options.showPoints,
});
}; };
render() { render() {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment