It resolves #3
This commit is contained in:
parent
298ca64675
commit
7918cadcd9
12 changed files with 8667 additions and 173 deletions
|
|
@ -16,7 +16,10 @@ class CSVDownload extends React.Component {
|
|||
}
|
||||
|
||||
componentDidMount(){
|
||||
this.state.page = window.open(this.buildURI(this.props.data, this.props.headers), this.props.target, this.props.specs, this.props.replace);
|
||||
const {data, headers, separator, target, specs, replace} = this.props;
|
||||
this.state.page = window.open(
|
||||
this.buildURI(data, headers, separator), target, specs, replace
|
||||
);
|
||||
}
|
||||
|
||||
getWindow() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue