Skip to content

Commit

Permalink
Type fix
Browse files Browse the repository at this point in the history
  • Loading branch information
smith committed Aug 5, 2021
1 parent 37ac338 commit 808ccdf
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ export function BackendContents({ nodeData }: ContentsProps) {
const isLoading = status === FETCH_STATUS.LOADING;
const detailsUrl = apmRouter.link('/backends/:backendName/overview', {
path: { backendName },
query,
query: query as any,
});

return (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,11 @@ import {
import React, { Fragment } from 'react';
import { ContentsProps } from '.';
import { euiStyled } from '../../../../../../../../src/plugins/kibana_react/common';
import {
SPAN_DESTINATION_SERVICE_RESOURCE,
SPAN_TYPE,
SPAN_SUBTYPE,
} from '../../../../../common/elasticsearch_fieldnames';
import { ExternalConnectionNode } from '../../../../../common/service_map';

const ExternalResourcesList = euiStyled.section`
Expand All @@ -29,8 +34,8 @@ export function ExternalsListContents({ nodeData }: ContentsProps) {
{nodeData.groupedConnections.map(
(resource: ExternalConnectionNode) => {
const title =
resource.label || resource['span.destination.service.resource'];
const desc = `${resource['span.type']} (${resource['span.subtype']})`;
resource.label || resource[SPAN_DESTINATION_SERVICE_RESOURCE];
const desc = `${resource[SPAN_TYPE]} (${resource[SPAN_SUBTYPE]})`;
return (
<Fragment key={resource.id}>
<EuiDescriptionListTitle
Expand Down

0 comments on commit 808ccdf

Please sign in to comment.