Skip to content

Commit

Permalink
[#163818577] Fix unused state
Browse files Browse the repository at this point in the history
  • Loading branch information
Arthur236 committed Feb 22, 2019
1 parent 978308b commit 8b853d0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/components/Assets/UploadAssetsComponent.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ class UploadAssets extends React.Component {

this.setState({ accepted, rejected });

if (!isEmpty(accepted)) {
this.props.uploadAssets(accepted);
if (!isEmpty(this.state.accepted)) {
this.props.uploadAssets(this.state.accepted);
}
};

Expand All @@ -52,7 +52,7 @@ class UploadAssets extends React.Component {
return (
<div className="center-upload">
<span className="failed-file">
<a href=" " onClick={() => this.handleFileDownload('files/sample_import_file/')}>
<a href="# " onClick={() => this.handleFileDownload('files/sample_import_file/')}>
Download the sample file
</a>{' '}
, fill the columns and upload it.
Expand Down

0 comments on commit 8b853d0

Please sign in to comment.