From 67666da3dc890691916f826656e9b281b29f3ab4 Mon Sep 17 00:00:00 2001 From: Mason Herron Date: Wed, 18 Dec 2024 19:01:37 -0700 Subject: [PATCH] removed unneeded selectedVersionStr as it uses selectedVersion now --- .../sections/agents/components/agent_upgrade_modal/index.tsx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/x-pack/plugins/fleet/public/applications/fleet/sections/agents/components/agent_upgrade_modal/index.tsx b/x-pack/plugins/fleet/public/applications/fleet/sections/agents/components/agent_upgrade_modal/index.tsx index 844318ffa81aa..da7c2d2af9aba 100644 --- a/x-pack/plugins/fleet/public/applications/fleet/sections/agents/components/agent_upgrade_modal/index.tsx +++ b/x-pack/plugins/fleet/public/applications/fleet/sections/agents/components/agent_upgrade_modal/index.tsx @@ -230,7 +230,6 @@ export const AgentUpgradeAgentModal: React.FunctionComponent { const newValue = e.target.value; - setSelectedVersionStr(newValue); + setSelectedVersion([{ label: newValue, value: newValue }]); }} isInvalid={!!semverErrors}