diff --git a/public/app/plugins/panel/news/component/News.tsx b/public/app/plugins/panel/news/component/News.tsx index f0e31cdf3bf..ae1df0a3ef3 100644 --- a/public/app/plugins/panel/news/component/News.tsx +++ b/public/app/plugins/panel/news/component/News.tsx @@ -1,4 +1,5 @@ import { css, cx } from '@emotion/css'; +import { useId } from 'react'; import Skeleton from 'react-loading-skeleton'; import { DataFrameView, GrafanaTheme2, textUtil, dateTimeFormat } from '@grafana/data'; @@ -15,10 +16,10 @@ interface NewsItemProps { } function NewsComponent({ width, showImage, data, index }: NewsItemProps) { + const titleId = useId(); const styles = useStyles2(getStyles); const useWideLayout = width > 600; const newsItem = data.get(index); - const titleId = encodeURI(newsItem.title); return (