Skip to content
This repository has been archived by the owner on Jun 25, 2020. It is now read-only.

Commit

Permalink
fix: pass all props to transformProps in LineMulti chart
Browse files Browse the repository at this point in the history
  • Loading branch information
nytai committed Nov 5, 2019
1 parent 277efd0 commit 3e11ccf
Showing 1 changed file with 5 additions and 18 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,10 @@ const propTypes = {
annotationData: PropTypes.object,
datasource: PropTypes.object,
formData: PropTypes.object,
onAddFilter: PropTypes.func,
onError: PropTypes.func,
hooks: PropTypes.shape({
onAddFilter: PropTypes.func,
onError: PropTypes.func,
}),
};
const defaultProps = {
onAddFilter() {},
Expand Down Expand Up @@ -137,27 +139,12 @@ class LineMulti extends React.Component {
}

render() {
const {
width,
height,
annotationData,
datasource,
formData,
onAddFilter,
onError,
} = this.props;
const { queryData } = this.state;

return (
<ReactNVD3
{...transformProps({
width,
height,
annotationData,
datasource,
formData,
onError,
onAddFilter,
...this.props,
queryData,
})}
/>
Expand Down

0 comments on commit 3e11ccf

Please sign in to comment.