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); }} />