Skip to content

Commit fdf7c5e

Browse files
committed
Avoid blinking
1 parent 3eb2fb9 commit fdf7c5e

File tree

1 file changed

+2
-2
lines changed
  • x-pack/plugins/ingest_manager/public/applications/ingest_manager/sections/fleet/agent_details_page

1 file changed

+2
-2
lines changed

x-pack/plugins/ingest_manager/public/applications/ingest_manager/sections/fleet/agent_details_page/index.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ export const AgentDetailsPage: React.FunctionComponent = () => {
9797
<EuiFlexItem>
9898
<EuiText>
9999
<h1>
100-
{isLoading ? (
100+
{isLoading && isInitialRequest ? (
101101
<Loading />
102102
) : typeof agentData?.item?.local_metadata?.host === 'object' &&
103103
typeof agentData?.item?.local_metadata?.host?.hostname === 'string' ? (
@@ -116,7 +116,7 @@ export const AgentDetailsPage: React.FunctionComponent = () => {
116116
</EuiFlexItem>
117117
</EuiFlexGroup>
118118
),
119-
[agentData?.item?.local_metadata?.host, agentId, getHref, isLoading]
119+
[agentData?.item?.local_metadata?.host, agentId, getHref, isInitialRequest, isLoading]
120120
);
121121

122122
const headerRightContent = useMemo(

0 commit comments

Comments
 (0)