Skip to content

Commit 87554c9

Browse files
authored
[Ingest Manager] Fix flyout instruction selection (#77071) (#77356)
1 parent c09124c commit 87554c9

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

x-pack/plugins/ingest_manager/public/applications/ingest_manager/sections/fleet/components/agent_enrollment_flyout/managed_instructions.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ interface Props {
2424
agentPolicies?: AgentPolicy[];
2525
}
2626

27-
export const ManagedInstructions: React.FunctionComponent<Props> = ({ agentPolicies }) => {
27+
export const ManagedInstructions = React.memo<Props>(({ agentPolicies }) => {
2828
const { getHref } = useLink();
2929
const core = useCore();
3030
const fleetStatus = useFleetStatus();
@@ -91,4 +91,4 @@ export const ManagedInstructions: React.FunctionComponent<Props> = ({ agentPolic
9191
)}
9292
</>
9393
);
94-
};
94+
});

x-pack/plugins/ingest_manager/public/applications/ingest_manager/sections/fleet/components/agent_enrollment_flyout/standalone_instructions.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ interface Props {
3131

3232
const RUN_INSTRUCTIONS = './elastic-agent run';
3333

34-
export const StandaloneInstructions: React.FunctionComponent<Props> = ({ agentPolicies }) => {
34+
export const StandaloneInstructions = React.memo<Props>(({ agentPolicies }) => {
3535
const { getHref } = useLink();
3636
const core = useCore();
3737
const { notifications } = core;
@@ -189,4 +189,4 @@ export const StandaloneInstructions: React.FunctionComponent<Props> = ({ agentPo
189189
<EuiSteps steps={steps} />
190190
</>
191191
);
192-
};
192+
});

0 commit comments

Comments
 (0)