diff --git a/x-pack/plugins/fleet/public/applications/integrations/sections/epm/screens/detail/assets/assets.tsx b/x-pack/plugins/fleet/public/applications/integrations/sections/epm/screens/detail/assets/assets.tsx index 6dae7920fa692..b0e1189f131ba 100644 --- a/x-pack/plugins/fleet/public/applications/integrations/sections/epm/screens/detail/assets/assets.tsx +++ b/x-pack/plugins/fleet/public/applications/integrations/sections/epm/screens/detail/assets/assets.tsx @@ -13,10 +13,9 @@ import { groupBy } from 'lodash'; import type { ResolvedSimpleSavedObject } from 'src/core/public'; -import { useKibana } from '../../../../../../../../../../../src/plugins/kibana_react/public'; import { Loading, Error, ExtensionWrapper } from '../../../../../components'; -import type { PackageInfo, StartPlugins } from '../../../../../types'; +import type { PackageInfo } from '../../../../../types'; import { InstallStatus } from '../../../../../types'; import { @@ -37,9 +36,9 @@ interface AssetsPanelProps { export const AssetsPage = ({ packageInfo }: AssetsPanelProps) => { const { name, version } = packageInfo; - const { spaces } = useKibana().services; const pkgkey = `${name}-${version}`; const { + spaces, savedObjects: { client: savedObjectsClient }, } = useStartServices(); const customAssetsExtension = useUIExtension(packageInfo.name, 'package-detail-assets'); diff --git a/x-pack/plugins/fleet/public/plugin.ts b/x-pack/plugins/fleet/public/plugin.ts index 79dc8cc38c4bf..b8bda08177a7e 100644 --- a/x-pack/plugins/fleet/public/plugin.ts +++ b/x-pack/plugins/fleet/public/plugin.ts @@ -26,6 +26,8 @@ import type { SharePluginStart } from 'src/plugins/share/public'; import { once } from 'lodash'; +import type { SpacesPluginStart } from '../../spaces/public'; + import type { CloudStart } from '../../cloud/public'; import type { UsageCollectionSetup } from '../../../../src/plugins/usage_collection/public'; @@ -105,6 +107,7 @@ export interface FleetStartServices extends CoreStart, Exclude