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();