Skip to content

Commit

Permalink
[Fleet] Fix default integration name when adding 10+ names (#93278) (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
Zacqary authored Mar 2, 2021
1 parent 0be2f15 commit 04cb7d9
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ export const StepDefinePackagePolicy: React.FunctionComponent<{
const pkgPoliciesWithMatchingNames = (agentPolicy.package_policies as PackagePolicy[])
.filter((ds) => Boolean(ds.name.match(pkgPoliciesNamePattern)))
.map((ds) => parseInt(ds.name.match(pkgPoliciesNamePattern)![1], 10))
.sort();
.sort((a, b) => a - b);

updatePackagePolicy({
// FIXME: Improve package policies name uniqueness - https://github.com/elastic/kibana/issues/72948
Expand Down

0 comments on commit 04cb7d9

Please sign in to comment.