Skip to content
Snippets Groups Projects
Commit 5d668831 authored by Václav Bartoš's avatar Václav Bartoš
Browse files

TheHiveButton: don't open empty observable lists

parent d3c061e7
No related branches found
No related tags found
No related merge requests found
......@@ -512,7 +512,7 @@ class ObservablesTable extends Component {
<EuiAccordion
id="accordion-{this.props.fieldName}"
buttonContent={<EuiTitle size="xs"><h4>{this.props.fieldName.replace(/\.keyword$/, "")} ({this.props.obsSel.length}/{n_obs})</h4></EuiTitle>}
initialIsOpen={n_obs <= 3}
initialIsOpen={n_obs > 0 && n_obs <= 3}
>
<EuiBasicTable
ref={this.tableRef}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment