Skip to content

Commit

Permalink
Fix bug creating new policy on the fly
Browse files Browse the repository at this point in the history
  • Loading branch information
jen-huang committed Nov 19, 2020
1 parent 6c23302 commit 34f7014
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@ export const StepSelectAgentPolicy: React.FunctionComponent<{
id="xpack.fleet.createPackagePolicy.StepSelectPolicy.agentPolicyAgentsDescriptionText"
defaultMessage="{count, plural, one {# agent} other {# agents}} are enrolled with the selected agent policy."
values={{
count: agentPoliciesById[selectedPolicyId].agents || 0,
count: agentPoliciesById[selectedPolicyId]?.agents || 0,
}}
/>
) : null
Expand Down

0 comments on commit 34f7014

Please sign in to comment.