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

This commit is contained in:
Andrej Ocenas 2022-06-13 11:21:38 +02:00 committed by GitHub
parent 2abb6a461f
commit bd04b776b5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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) {