mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 09:48:58 -04:00
Fixes #61994
This commit is contained in:
parent
eaeac31b12
commit
0fbf560981
1 changed files with 7 additions and 2 deletions
|
@ -32,7 +32,12 @@ export function ServiceMap({ serviceName }: ServiceMapProps) {
|
|||
const license = useLicense();
|
||||
const { urlParams } = useUrlParams();
|
||||
|
||||
const { data } = useFetcher(() => {
|
||||
const { data = { elements: [] } } = useFetcher(() => {
|
||||
// When we don't have a license or a valid license, don't make the request.
|
||||
if (!license || !isValidPlatinumLicense(license)) {
|
||||
return;
|
||||
}
|
||||
|
||||
const { start, end, environment } = urlParams;
|
||||
if (start && end) {
|
||||
return callApmApi({
|
||||
|
@ -48,7 +53,7 @@ export function ServiceMap({ serviceName }: ServiceMapProps) {
|
|||
}
|
||||
});
|
||||
}
|
||||
}, [serviceName, urlParams]);
|
||||
}, [license, serviceName, urlParams]);
|
||||
|
||||
const { ref, height, width } = useRefDimensions();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue