From 4d1ee06b1b07fd1ebdd365df2c6ad87ebc781b8b Mon Sep 17 00:00:00 2001 From: "Grot (@grafanabot)" <43478413+grafanabot@users.noreply.github.com> Date: Mon, 13 Jun 2022 08:26:04 -0400 Subject: [PATCH] Prometheus: Don't show undefined for step in collapsed options in query editor when value is "auto" (#50511) (#50658) (cherry picked from commit bd04b776b53915e30adab57de62660ba54526d0b) Co-authored-by: Andrej Ocenas --- .../querybuilder/components/PromQueryBuilderOptions.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/app/plugins/datasource/prometheus/querybuilder/components/PromQueryBuilderOptions.tsx b/public/app/plugins/datasource/prometheus/querybuilder/components/PromQueryBuilderOptions.tsx index a071fe5230f..f2d8ab27671 100644 --- a/public/app/plugins/datasource/prometheus/querybuilder/components/PromQueryBuilderOptions.tsx +++ b/public/app/plugins/datasource/prometheus/querybuilder/components/PromQueryBuilderOptions.tsx @@ -127,7 +127,7 @@ function getCollapsedInfo(query: PromQuery, formatOption: string, queryType: str items.push(`Legend: ${getLegendModeLabel(query.legendFormat)}`); items.push(`Format: ${formatOption}`); - items.push(`Step ${query.interval}`); + items.push(`Step: ${query.interval ?? 'auto'}`); items.push(`Type: ${queryType}`); if (query.exemplar) {