From fae61de9a17edb63b7f6d461191c9bc50251cb5c Mon Sep 17 00:00:00 2001 From: Maxim Kholod Date: Thu, 21 Sep 2023 14:43:59 +0200 Subject: [PATCH] remove redundant initialisation --- x-pack/plugins/fleet/public/hooks/use_agent_version.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 &&