[Fleet] Fix dupplicate unhealthy callout (#161755)

This commit is contained in:
Nicolas Chaulet 2023-07-12 09:21:43 -04:00 committed by GitHub
parent 19f00ec3d7
commit c031900036
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -529,17 +529,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}