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 b3c0cf93c88ef..88249f7f5d5ce 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={{