Skip to content

Commit

Permalink
[inspector] do not show clusters health bar when there are no remotes (
Browse files Browse the repository at this point in the history
…elastic#167657)

<img width="400" alt="Screenshot 2023-09-29 at 8 42 00 AM"
src="https://github.com/elastic/kibana/assets/373691/a8d575d7-776b-425b-a6fa-de91301f0512">

---------

Co-authored-by: kibanamachine <[email protected]>
  • Loading branch information
nreese and kibanamachine authored Sep 29, 2023
1 parent 97c7d7d commit 50fa260
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 20 deletions.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ export class ClustersView extends Component<RequestDetailsProps> {
return this.props.request.response?.json ? (
<>
<EuiSpacer size="m" />
<ClustersHealth clusters={clusters} />
{Object.keys(clusters).length > 1 ? <ClustersHealth clusters={clusters} /> : null}
<ClustersTable clusters={clusters} />
</>
) : null;
Expand Down

0 comments on commit 50fa260

Please sign in to comment.