diff --git a/web/ui/mantine-ui/src/pages/query/Graph.tsx b/web/ui/mantine-ui/src/pages/query/Graph.tsx index 082fa340d2..5a4b95baa8 100644 --- a/web/ui/mantine-ui/src/pages/query/Graph.tsx +++ b/web/ui/mantine-ui/src/pages/query/Graph.tsx @@ -85,17 +85,31 @@ const Graph: FC = ({ } | null>(null); // Helper function to render warnings. - const renderWarnings = (warnings?: string[]) => { - return warnings?.map((w, idx) => ( - } - > - {w} - - )); + const renderAlerts = (warnings?: string[], infos?: string[]) => { + return ( + <> + {warnings?.map((w, idx) => ( + } + > + {w} + + ))} + {infos?.map((w, idx) => ( + } + > + {w} + + ))} + + ); }; useEffect(() => { @@ -166,7 +180,7 @@ const Graph: FC = ({ }> This query returned no data. - {renderWarnings(dataAndRange.data.warnings)} + {renderAlerts(dataAndRange.data.warnings)} ); } @@ -183,7 +197,7 @@ const Graph: FC = ({ graphing the equivalent instant vector selector instead. )} - {renderWarnings(dataAndRange.data.warnings)} + {renderAlerts(dataAndRange.data.warnings, dataAndRange.data.infos)}