diff --git a/x-pack/plugins/fleet/public/components/package_policy_actions_menu.tsx b/x-pack/plugins/fleet/public/components/package_policy_actions_menu.tsx index efc2d2f8bdf07a..82600880eaef3e 100644 --- a/x-pack/plugins/fleet/public/components/package_policy_actions_menu.tsx +++ b/x-pack/plugins/fleet/public/components/package_policy_actions_menu.tsx @@ -138,7 +138,7 @@ export const PackagePolicyActionsMenu: React.FunctionComponent<{ // , ]; - if (!agentPolicy || !agentPolicyIsManaged || agentPolicy.supports_agentless) { + if (!agentPolicy || !agentPolicyIsManaged || agentPolicy?.supports_agentless) { const ContextMenuItem = canWriteIntegrationPolicies ? DangerEuiContextMenuItem : EuiContextMenuItem;