Skip to content

Commit

Permalink
fixing service maps bug
Browse files Browse the repository at this point in the history
  • Loading branch information
cauemarcondes committed Nov 18, 2021
1 parent eb7f525 commit 14184bf
Showing 1 changed file with 8 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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();

Expand Down

0 comments on commit 14184bf

Please sign in to comment.