Only show alerts filter if there are alerts to filter

pull/10616/head
Alex P 2017-05-10 16:38:10 -07:00
parent d0f8e37139
commit 9626e2d91a
1 changed files with 1 additions and 1 deletions

View File

@ -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">