diff --git a/x-pack/plugins/fleet/public/hooks/use_agent_version.ts b/x-pack/plugins/fleet/public/hooks/use_agent_version.ts index 7e9c732f8a8df..8c198dbc7773e 100644 --- a/x-pack/plugins/fleet/public/hooks/use_agent_version.ts +++ b/x-pack/plugins/fleet/public/hooks/use_agent_version.ts @@ -23,7 +23,7 @@ export const useAgentVersion = (): string | undefined => { try { const res = await sendGetAgentsAvailableVersions(); const availableVersions = res?.data?.items; - let agentVersionToUse = kibanaVersion; + let agentVersionToUse; if ( availableVersions &&