Prometheus: Don't show undefined for step in collapsed options in query editor when value is "auto" (#50511)

pull/50677/head
Andrej Ocenas 3 years ago committed by GitHub
parent 2abb6a461f
commit bd04b776b5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      public/app/plugins/datasource/prometheus/querybuilder/components/PromQueryBuilderOptions.tsx

@ -126,7 +126,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) {

Loading…
Cancel
Save