[8.9] [Fleet] Fix dupplicate unhealthy callout (#161755) (#161769)

# Backport

This will backport the following commits from `main` to `8.9`:
- [[Fleet] Fix dupplicate unhealthy callout
(#161755)](https://github.com/elastic/kibana/pull/161755)

<!--- Backport version: 8.9.7 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sqren/backport)

<!--BACKPORT [{"author":{"name":"Nicolas
Chaulet","email":"nicolas.chaulet@elastic.co"},"sourceCommit":{"committedDate":"2023-07-12T13:21:43Z","message":"[Fleet]
Fix dupplicate unhealthy callout
(#161755)","sha":"c031900036b320dff64aebe14c0bf0ec9001ae84","branchLabelMapping":{"^v8.10.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["bug","release_note:skip","Team:Fleet","v8.9.0","v8.10.0"],"number":161755,"url":"https://github.com/elastic/kibana/pull/161755","mergeCommit":{"message":"[Fleet]
Fix dupplicate unhealthy callout
(#161755)","sha":"c031900036b320dff64aebe14c0bf0ec9001ae84"}},"sourceBranch":"main","suggestedTargetBranches":["8.9"],"targetPullRequestStates":[{"branch":"8.9","label":"v8.9.0","labelRegex":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"main","label":"v8.10.0","labelRegex":"^v8.10.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/161755","number":161755,"mergeCommit":{"message":"[Fleet]
Fix dupplicate unhealthy callout
(#161755)","sha":"c031900036b320dff64aebe14c0bf0ec9001ae84"}}]}]
BACKPORT-->

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
This commit is contained in:
Nicolas Chaulet 2023-07-12 14:16:12 -04:00 committed by GitHub
parent d15bd0338e
commit ddf0c1972e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -520,17 +520,6 @@ export const AgentListPage: React.FunctionComponent<{}> = () => {
<EuiSpacer size="l" />
</>
)}
{/* TODO serverless agent soft limit */}
{showUnhealthyCallout && (
<>
{cloud?.deploymentUrl ? (
<FleetServerCloudUnhealthyCallout deploymentUrl={cloud.deploymentUrl} />
) : (
<FleetServerOnPremUnhealthyCallout onClickAddFleetServer={onClickAddFleetServer} />
)}
<EuiSpacer size="l" />
</>
)}
{/* Search and filter bar */}
<SearchAndFilterBar
agentPolicies={agentPolicies}