Skip to content

Commit 88f5a81

Browse files
committed
Show the download link as soon as possible
1 parent c9ec0a1 commit 88f5a81

File tree

1 file changed

+7
-9
lines changed
  • src/containers/SequenceSearch/components/Results

1 file changed

+7
-9
lines changed

src/containers/SequenceSearch/components/Results/index.jsx

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -42,16 +42,14 @@ class Results extends React.Component {
4242
return (
4343
<div className="row">
4444
{
45-
this.props.jobList && this.props.jobList.length !== 0 && (
45+
this.props.jobList && this.props.jobList.length > 0 && (
4646
<div>
47-
{this.props.jobId &&
48-
<div className="small-12 columns">
49-
<CSVLink data={Object.entries(this.props.jobList)}filename={"job-ids.csv"}>
50-
<small>Download the Ids</small>
51-
</CSVLink>
52-
<small> for future reference</small>
53-
</div>
54-
}
47+
<div className="small-12 columns">
48+
<CSVLink data={Object.entries(this.props.jobList)} filename={"job-ids.csv"}>
49+
<small>Download the Ids</small>
50+
</CSVLink>
51+
<small> for future reference</small>
52+
</div>
5553
<div className="small-12 columns">
5654
<select onChange={this.onSeeResults}>
5755
<option key={'no-job-selected'}>Select a job ID</option>

0 commit comments

Comments
 (0)