mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 09:48:58 -04:00
[Fleet] Only call setSelectionType when not loading (#133769)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
This commit is contained in:
parent
7e3cdb92b4
commit
57c17649f3
1 changed files with 2 additions and 2 deletions
|
@ -70,6 +70,8 @@ export const Instructions = (props: InstructionProps) => {
|
|||
return settings?.fleet_server_hosts || [];
|
||||
}, [settings]);
|
||||
|
||||
if (isLoadingAgents || isLoadingAgentPolicies) return <Loading size="l" />;
|
||||
|
||||
const hasNoFleetServerHost = fleetStatus.isReady && fleetServerHosts.length === 0;
|
||||
|
||||
const showAgentEnrollment =
|
||||
|
@ -89,8 +91,6 @@ export const Instructions = (props: InstructionProps) => {
|
|||
setSelectionType('tabs');
|
||||
}
|
||||
|
||||
if (isLoadingAgents || isLoadingAgentPolicies) return <Loading size="l" />;
|
||||
|
||||
if (hasNoFleetServerHost) {
|
||||
return null;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue