From bb431ce0c779a45948d2c729873436329e43a2a0 Mon Sep 17 00:00:00 2001 From: Mark Hopkin Date: Wed, 21 Jul 2021 17:06:26 +0100 Subject: [PATCH] fix: incorrect useBreadcrumbs for integrations (#106409) --- .../sections/agent_policy/edit_package_policy_page/index.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/x-pack/plugins/fleet/public/applications/fleet/sections/agent_policy/edit_package_policy_page/index.tsx b/x-pack/plugins/fleet/public/applications/fleet/sections/agent_policy/edit_package_policy_page/index.tsx index ee529b6865e565..65496afc1a1014 100644 --- a/x-pack/plugins/fleet/public/applications/fleet/sections/agent_policy/edit_package_policy_page/index.tsx +++ b/x-pack/plugins/fleet/public/applications/fleet/sections/agent_policy/edit_package_policy_page/index.tsx @@ -31,6 +31,7 @@ import { sendGetOnePackagePolicy, sendGetPackageInfoByKey, } from '../../../hooks'; +import { useBreadcrumbs as useIntegrationsBreadcrumbs } from '../../../../integrations/hooks'; import { Loading, Error, ExtensionWrapper } from '../../../components'; import { ConfirmDeployAgentPolicyModal } from '../components'; import { CreatePackagePolicyPageLayout } from '../create_package_policy_page/components'; @@ -492,6 +493,6 @@ const IntegrationsBreadcrumb = memo<{ policyName: string; pkgkey: string; }>(({ pkgTitle, policyName, pkgkey }) => { - useBreadcrumbs('integration_policy_edit', { policyName, pkgTitle, pkgkey }); + useIntegrationsBreadcrumbs('integration_policy_edit', { policyName, pkgTitle, pkgkey }); return null; });