Skip to content

Commit 34f7014

Browse files
committed
Fix bug creating new policy on the fly
1 parent 6c23302 commit 34f7014

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

x-pack/plugins/fleet/public/applications/fleet/sections/agent_policy/create_package_policy_page/step_select_agent_policy.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,7 @@ export const StepSelectAgentPolicy: React.FunctionComponent<{
246246
id="xpack.fleet.createPackagePolicy.StepSelectPolicy.agentPolicyAgentsDescriptionText"
247247
defaultMessage="{count, plural, one {# agent} other {# agents}} are enrolled with the selected agent policy."
248248
values={{
249-
count: agentPoliciesById[selectedPolicyId].agents || 0,
249+
count: agentPoliciesById[selectedPolicyId]?.agents || 0,
250250
}}
251251
/>
252252
) : null

0 commit comments

Comments
 (0)