diff --git a/x-pack/plugins/fleet/public/applications/fleet/sections/agents/agent_list_page/index.tsx b/x-pack/plugins/fleet/public/applications/fleet/sections/agents/agent_list_page/index.tsx
index 6dd1b8a9693e8..49fdd156c4f56 100644
--- a/x-pack/plugins/fleet/public/applications/fleet/sections/agents/agent_list_page/index.tsx
+++ b/x-pack/plugins/fleet/public/applications/fleet/sections/agents/agent_list_page/index.tsx
@@ -407,7 +407,7 @@ export const AgentListPage: React.FunctionComponent<{}> = () => {
{safeMetadata(version)}
- {isAgentUpgradeable(agent, kibanaVersion) ? (
+ {isAgentSelectable(agent) && isAgentUpgradeable(agent, kibanaVersion) ? (
@@ -593,7 +593,15 @@ export const AgentListPage: React.FunctionComponent<{}> = () => {
emptyPrompt
)
}
- items={totalAgents ? agents : []}
+ items={
+ totalAgents
+ ? showUpgradeable
+ ? agents.filter(
+ (agent) => isAgentSelectable(agent) && isAgentUpgradeable(agent, kibanaVersion)
+ )
+ : agents
+ : []
+ }
itemId="id"
columns={columns}
pagination={{