Skip to content

Commit d032e36

Browse files
committed
Show table with success status only
1 parent d86573a commit d032e36

File tree

1 file changed

+6
-6
lines changed
  • src/containers/SequenceSearch/components/Results

1 file changed

+6
-6
lines changed

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

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -91,10 +91,10 @@ class Results extends React.Component {
9191
}
9292
{
9393
this.props.jobId && this.props.rfam && (
94-
(this.props.infernalStatus === "loading" || this.props.infernalStatus === "success") && [
95-
<div className="small-12 columns" key={`infernal-div`}>
96-
<h3 style={h3Style}>Rfam classification: { this.props.infernalStatus === "loading" ? <i className="animated infinite flash">...</i> : '' }</h3>
97-
<table className="responsive-table">
94+
<div className="small-12 columns" key={`infernal-div`}>
95+
<h3 style={h3Style}>Rfam classification: { this.props.infernalStatus === "loading" ? <i className="animated infinite flash">...</i> : this.props.infernalEntries && this.props.infernalEntries.length ? <small>{this.props.infernalEntries.length}</small> : <small>0</small> }</h3>
96+
{this.props.infernalStatus === "success" && [
97+
<table className="responsive-table" key={`infernal-table`}>
9898
<thead>
9999
<tr>
100100
<th>Family</th>
@@ -120,8 +120,8 @@ class Results extends React.Component {
120120
)) : <tr key={"noResults"}><td colSpan="7" style={{textAlign: 'center'}}>The query sequence did not match any Rfam families.</td></tr> }
121121
</tbody>
122122
</table>
123-
</div>
124-
]
123+
]}
124+
</div>
125125
)
126126
}
127127
{

0 commit comments

Comments
 (0)