From 14184bf0d330f90e4e8a3ae15dcff0f1ed44afc8 Mon Sep 17 00:00:00 2001 From: cauemarcondes Date: Thu, 18 Nov 2021 13:56:08 -0500 Subject: [PATCH] fixing service maps bug --- .../app/service_map/Popover/backend_contents.tsx | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/x-pack/plugins/apm/public/components/app/service_map/Popover/backend_contents.tsx b/x-pack/plugins/apm/public/components/app/service_map/Popover/backend_contents.tsx index a545f474746a4..6b9954465f39d 100644 --- a/x-pack/plugins/apm/public/components/app/service_map/Popover/backend_contents.tsx +++ b/x-pack/plugins/apm/public/components/app/service_map/Popover/backend_contents.tsx @@ -57,12 +57,14 @@ export function BackendContents({ ); const isLoading = status === FETCH_STATUS.LOADING; - const detailsUrl = apmRouter.link('/backends/overview', { - query: { - ...query, - backendName, - } as TypeOf['query'], - }); + const detailsUrl = backendName + ? apmRouter.link('/backends/overview', { + query: { + ...query, + backendName, + } as TypeOf['query'], + }) + : undefined; const trackEvent = useUiTracker();