From 5d6688316fce1d970e8e9383c7c57ca64e443aca Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=A1clav=20Barto=C5=A1?= <bartos@cesnet.cz> Date: Tue, 13 Apr 2021 15:11:54 +0200 Subject: [PATCH] TheHiveButton: don't open empty observable lists --- thehive_button/public/vis_controller.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/thehive_button/public/vis_controller.js b/thehive_button/public/vis_controller.js index 7b3ee14..62682f6 100644 --- a/thehive_button/public/vis_controller.js +++ b/thehive_button/public/vis_controller.js @@ -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} -- GitLab