Only show alerts filter if there are alerts to filter
parent
d0f8e37139
commit
9626e2d91a
|
@ -82,7 +82,7 @@ const AlertsTable = React.createClass({
|
|||
<div className="panel panel-minimal">
|
||||
<div className="panel-heading u-flex u-ai-center u-jc-space-between">
|
||||
<h2 className="panel-title">{this.props.alerts.length} Alerts</h2>
|
||||
<SearchBar onSearch={this.filterAlerts} />
|
||||
{alerts.length > 0 ? <SearchBar onSearch={this.filterAlerts} /> : null}
|
||||
</div>
|
||||
<div className="panel-body">
|
||||
<table className="table v-center">
|
||||
|
|
Loading…
Reference in New Issue