[v10.0.x] Dashboard: Fix issue where a panel with a description and a cached response displays 2 info icons (#70566)

Co-authored-by: Alexa V <239999+axelavargas@users.noreply.github.com>
Fix issue where a panel with a description and a cached response displays 2 info icons (#70513)
This commit is contained in:
grafana-delivery-bot[bot] authored and GitHub committed 2023-06-23 11:25:34 +03:00
1 parent 5a11b456a5
commit f06c6ea694
2 files changed
+2 -1

No files matched your search

+1
View File
@@ -95,6 +95,7 @@ export const availableIconsIndex = {
'file-blank': true,
'file-copy-alt': true,
'file-download': true,
'file-landscape-alt': true,
filter: true,
flip: true,
folder: true,
@@ -14,7 +14,7 @@ export const PanelHeaderNotice = ({ notice, onClick }: Props) => {
const styles = useStyles2(getStyles);
const iconName =
notice.severity === 'error' || notice.severity === 'warning' ? 'exclamation-triangle' : 'info-circle';
notice.severity === 'error' || notice.severity === 'warning' ? 'exclamation-triangle' : 'file-landscape-alt';
if (notice.inspect && onClick) {
return (