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 aa6591a commit 1b8d20c
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 1b8d20c

Please sign in to comment.