Fix error while getting no result from a search
This commit is contained in:
parent
5264fb049b
commit
6464015b63
@ -76,6 +76,12 @@ export default class ListPosters extends React.PureComponent {
|
|||||||
displayFilter = false;
|
displayFilter = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
let displayExplorerOptions = false;
|
||||||
|
if (listSize !== 0) {
|
||||||
|
displayExplorerOptions = !displayFilter;
|
||||||
|
}
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className={colSize}>
|
<div className={colSize}>
|
||||||
{displayFilter &&
|
{displayFilter &&
|
||||||
@ -86,7 +92,7 @@ export default class ListPosters extends React.PureComponent {
|
|||||||
}
|
}
|
||||||
<ExplorerOptions
|
<ExplorerOptions
|
||||||
type={this.props.type}
|
type={this.props.type}
|
||||||
display={!displayFilter}
|
display={displayExplorerOptions}
|
||||||
params={this.props.params}
|
params={this.props.params}
|
||||||
router={this.props.router}
|
router={this.props.router}
|
||||||
options={this.props.exploreOptions}
|
options={this.props.exploreOptions}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user