mirror of
https://github.com/grafana/grafana.git
synced 2024-11-26 02:40:26 -06:00
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:
parent
19f520d891
commit
ac77d864fb
@ -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>
|
||||
);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user