[APM] Service maps error after clicking on multiple services (#119077)

This commit is contained in:
Cauê Marcondes 2021-11-19 09:29:31 -05:00 committed by GitHub
parent dbf0e3d76b
commit 8d476b2018
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -57,12 +57,14 @@ export function BackendContents({
);
const isLoading = status === FETCH_STATUS.LOADING;
const detailsUrl = apmRouter.link('/backends/overview', {
query: {
...query,
backendName,
} as TypeOf<ApmRoutes, '/backends/overview'>['query'],
});
const detailsUrl = backendName
? apmRouter.link('/backends/overview', {
query: {
...query,
backendName,
} as TypeOf<ApmRoutes, '/backends/overview'>['query'],
})
: undefined;
const trackEvent = useUiTracker();