DashboardLink: Fixes double escaping of > in dashboard link (#33617)

* DashboardLink: Fixes double escaping of > in dashboard link

* Update DashboardLinks.tsx
This commit is contained in:
Torkel Ödegaard 2021-05-03 14:54:36 +02:00 committed by GitHub
parent 19f520d891
commit ac77d864fb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,6 +1,6 @@
import React, { FC, useReducer } from 'react';
import { Icon, IconName, Tooltip } from '@grafana/ui';
import { sanitize, sanitizeUrl } from '@grafana/data/src/text/sanitize';
import { sanitizeUrl } from '@grafana/data/src/text/sanitize';
import { DashboardLinksDashboard } from './DashboardLinksDashboard';
import { getLinkSrv } from '../../../panel/panellinks/link_srv';
@ -51,7 +51,7 @@ export const DashboardLinks: FC<Props> = ({ dashboard, links }) => {
aria-label={selectors.components.DashboardLinks.link}
>
<Icon name={linkIconMap[link.icon] as IconName} style={{ marginRight: '4px' }} />
<span>{sanitize(linkInfo.title)}</span>
<span>{linkInfo.title}</span>
</a>
);