diff --git a/x-pack/plugins/upgrade_assistant/server/routes/remote_clusters.ts b/x-pack/plugins/upgrade_assistant/server/routes/remote_clusters.ts index de2177cffa1fe..0d7268e1be5be 100644 --- a/x-pack/plugins/upgrade_assistant/server/routes/remote_clusters.ts +++ b/x-pack/plugins/upgrade_assistant/server/routes/remote_clusters.ts @@ -26,7 +26,7 @@ export function registerRemoteClustersRoute({ router, lib: { handleEsError } }: response ) => { try { - const { body: clustersByName } = await client.asCurrentUser.cluster.remoteInfo(); + const clustersByName = await client.asCurrentUser.cluster.remoteInfo(); const remoteClusters = Object.keys(clustersByName);