Skip to content
Snippets Groups Projects
Commit d19a7a04 authored by Tom Robinson's avatar Tom Robinson
Browse files

Fix settings

parent 37b01a6c
No related branches found
No related tags found
No related merge requests found
......@@ -46,6 +46,9 @@ const withTransientSettingState = ComposedComponent =>
{...this.props}
settings={this.state.settings}
onChange={settings => this.setState({ settings })}
onDone={settings =>
this.props.onChange(settings || this.state.settings)
}
/>
);
}
......@@ -84,7 +87,7 @@ class ChartSettings extends Component {
};
handleDone = () => {
this.props.onChange(this._getSettings());
this.props.onDone(this._getSettings());
this.props.onClose();
};
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment