We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b55523c commit dc856dbCopy full SHA for dc856db
1 file changed
x-pack/plugins/apm/public/components/shared/Links/apm/ServiceMapLink.tsx
@@ -8,10 +8,10 @@ import React from 'react';
8
import { APMLinkExtendProps, useAPMHref } from './APMLink';
9
10
export function useServiceMapHref(serviceName?: string) {
11
- const pathFor = serviceName
+ const path = serviceName
12
? `/services/${serviceName}/service-map`
13
: '/service-map';
14
- return useAPMHref({ path: pathFor });
+ return useAPMHref({ path });
15
}
16
17
interface ServiceMapLinkProps extends APMLinkExtendProps {
0 commit comments