diff --git a/x-pack/plugins/fleet/server/services/epm/packages/install.ts b/x-pack/plugins/fleet/server/services/epm/packages/install.ts index 8dc9672f01ffc..f34ddf598a615 100644 --- a/x-pack/plugins/fleet/server/services/epm/packages/install.ts +++ b/x-pack/plugins/fleet/server/services/epm/packages/install.ts @@ -875,7 +875,7 @@ export async function installCustomPackage( acc.set(asset.path, asset.content); return acc; }, new Map()); - const paths = [...Object.keys(assetsMap)]; + const paths = [...assetsMap.keys()]; const packageInstallContext: PackageInstallContext = { assetsMap,