diff --git a/x-pack/plugins/fleet/public/applications/fleet/sections/agent_policy/create_package_policy_page/index.tsx b/x-pack/plugins/fleet/public/applications/fleet/sections/agent_policy/create_package_policy_page/index.tsx
index b3b0d6ed51cb4..3fbaea67d8973 100644
--- a/x-pack/plugins/fleet/public/applications/fleet/sections/agent_policy/create_package_policy_page/index.tsx
+++ b/x-pack/plugins/fleet/public/applications/fleet/sections/agent_policy/create_package_policy_page/index.tsx
@@ -495,17 +495,13 @@ export const CreatePackagePolicyPage: React.FunctionComponent = () => {
onCancel={() => setFormState('VALID')}
/>
)}
- {from === 'package'
- ? packageInfo && (
-
- )
- : agentPolicy && (
-
- )}
+ {packageInfo && (
+
+ )}
@@ -559,14 +555,6 @@ export const CreatePackagePolicyPage: React.FunctionComponent = () => {
);
};
-const PolicyBreadcrumb: React.FunctionComponent<{
- policyName: string;
- policyId: string;
-}> = ({ policyName, policyId }) => {
- useBreadcrumbs('add_integration_from_policy', { policyName, policyId });
- return null;
-};
-
const IntegrationBreadcrumb: React.FunctionComponent<{
pkgTitle: string;
pkgkey: string;
diff --git a/x-pack/plugins/fleet/public/constants/page_paths.ts b/x-pack/plugins/fleet/public/constants/page_paths.ts
index 1688a396cd5a1..317241358a381 100644
--- a/x-pack/plugins/fleet/public/constants/page_paths.ts
+++ b/x-pack/plugins/fleet/public/constants/page_paths.ts
@@ -54,6 +54,7 @@ export const FLEET_ROUTING_PATHS = {
policy_details: '/policies/:policyId/:tabId?',
policy_details_settings: '/policies/:policyId/settings',
edit_integration: '/policies/:policyId/edit-integration/:packagePolicyId',
+ // TODO: Review uses and remove if it is no longer used or linked to in any UX flows
add_integration_from_policy: '/policies/:policyId/add-integration',
enrollment_tokens: '/enrollment-tokens',
data_streams: '/data-streams',