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

(cherry picked from commit bd04b776b5)

Co-authored-by: Andrej Ocenas <mr.ocenas@gmail.com>
This commit is contained in:
Grot (@grafanabot)
2022-06-13 14:26:04 +02:00
committed by GitHub
co-authored by Andrej Ocenas
parent bc2f941004
commit 4d1ee06b1b
@@ -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) {