diff --git a/web/ui/react-app/src/pages/graph/Panel.tsx b/web/ui/react-app/src/pages/graph/Panel.tsx index db11af916..1ac057115 100644 --- a/web/ui/react-app/src/pages/graph/Panel.tsx +++ b/web/ui/react-app/src/pages/graph/Panel.tsx @@ -29,6 +29,7 @@ interface PanelState { data: any; // TODO: Type data. lastQueryParams: QueryParams | null; loading: boolean; + warnings: string[] | null; error: string | null; stats: QueryStats | null; exprInputValue: string; @@ -67,6 +68,7 @@ class Panel extends Component { data: null, lastQueryParams: null, loading: false, + warnings: null, error: null, stats: null, exprInputValue: props.options.expr, @@ -156,6 +158,7 @@ class Panel extends Component { this.setState({ error: null, data: json.data, + warnings: json.warnings, lastQueryParams: { startTime, endTime, @@ -245,6 +248,11 @@ class Panel extends Component { {this.state.error && {this.state.error}} + {this.state.warnings?.map((warning, index) => ( + + {warning && {warning}} + + ))}