fix download for all members and DL

parent 5673947f
......@@ -47,7 +47,8 @@ export default class PanelActions extends React.Component {
e.preventDefault();
if (this.props.onExport) {
return this.props.onExport(this.state['items' + this.props.name]);
const { data: items } = this.props;
return this.props.onExport(items);
}
throw new Error('onExport function was not defined, onExport :' + this.props.onExport);
......
......@@ -47,7 +47,8 @@ export default class PanelActions extends React.Component {
e.preventDefault();
if (this.props.onExport) {
return this.props.onExport(this.state['items' + this.props.name]);
const { data: items } = this.props;
return this.props.onExport(items);
}
throw new Error('onExport function was not defined, onExport :' + this.props.onExport);
......
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