File tree Expand file tree Collapse file tree 1 file changed +11
-2
lines changed
src/containers/SequenceSearch/components/Results Expand file tree Collapse file tree 1 file changed +11
-2
lines changed Original file line number Diff line number Diff line change @@ -76,7 +76,7 @@ class Results extends React.Component {
76
76
}
77
77
{
78
78
( this . props . status === "loading" || this . props . status === "success" || this . props . status === "partial_success" ) && [
79
- < h1 key = { `results-header` } className = "margin-top-large margin-bottom-large" > Similar sequences: { this . props . status === "loading" ? < i className = "animated infinite flash" > ...</ i > : < small > { this . props . hitCount } total </ small > } </ h1 > ,
79
+ < h1 key = { `results-header` } className = "margin-top-large margin-bottom-large" > Similar sequences: { this . props . status === "loading" ? < i className = "animated infinite flash" > ...</ i > : < small > { this . props . hitCount } </ small > } </ h1 > ,
80
80
< div key = { `results-div` } className = "small-12 medium-10 medium-push-2 columns" >
81
81
< section >
82
82
{ this . props . entries . map ( ( entry , index ) => (
@@ -85,7 +85,16 @@ class Results extends React.Component {
85
85
{ ( this . props . status === "success" || this . props . status === "partial_success" ) && ( this . props . entries . length < this . props . hitCount ) && ( < a className = "button small" onClick = { this . props . onLoadMore } target = "_blank" > Load more</ a > ) }
86
86
</ section >
87
87
</ div > ,
88
- < Facets key = { `results-facets` } facets = { this . props . facets } selectedFacets = { this . props . selectedFacets } toggleFacet = { this . toggleFacet } ordering = { this . props . ordering } textSearchError = { this . props . textSearchError } />
88
+ < div key = { `results-facets` } >
89
+ { this . props . entries ?
90
+ < Facets
91
+ facets = { this . props . facets }
92
+ selectedFacets = { this . props . selectedFacets }
93
+ toggleFacet = { this . toggleFacet }
94
+ ordering = { this . props . ordering }
95
+ textSearchError = { this . props . textSearchError }
96
+ /> : '' }
97
+ </ div >
89
98
]
90
99
}
91
100
</ div >
You can’t perform that action at this time.
0 commit comments