From 40c45d02edfad6d0c1791058a7795c3e13b8a9a2 Mon Sep 17 00:00:00 2001 From: criamico Date: Wed, 18 May 2022 14:53:47 +0200 Subject: [PATCH] Fix check --- .../agents/components/agent_upgrade_modal/index.tsx | 8 ++++---- 1 file changed, 4 insertions(+), 4 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 3c9f35abe05a0..73c6eebf57375 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 @@ -202,8 +202,8 @@ export const AgentUpgradeAgentModal: React.FunctionComponent = ({ singleSelection={{ asPlainText: true }} options={fallbackVersions} selectedOptions={selectedVersion} - onChange={(selectedVersion: Array>) => { - setSelectedVersion(selectedVersion); + onChange={(selected: Array>) => { + setSelectedVersion(selected); }} /> @@ -240,8 +240,8 @@ export const AgentUpgradeAgentModal: React.FunctionComponent = ({ singleSelection={{ asPlainText: true }} options={maintainanceOptions} selectedOptions={selectedMantainanceWindow} - onChange={(selectedMantainanceWindow: Array>) => { - setSelectedMantainanceWindow(selectedMantainanceWindow); + onChange={(selected: Array>) => { + setSelectedMantainanceWindow(selected); }} />