mirror of
https://github.com/grafana/grafana.git
synced 2026-07-30 00:08:10 -05:00
Loki: Fix tracking of queries_with_changed_line_limit_count (#60091)
* change line limit tracking * updated test
This commit is contained in:
@@ -81,7 +81,7 @@ describe('queriesOnInitDashboard', () => {
|
||||
metric_queries_count: 3,
|
||||
queries_count: 5,
|
||||
queries_with_changed_legend_count: 3,
|
||||
queries_with_changed_line_limit_count: 5,
|
||||
queries_with_changed_line_limit_count: 2,
|
||||
queries_with_changed_resolution_count: 0,
|
||||
queries_with_template_variables_count: 2,
|
||||
range_queries_count: 4,
|
||||
|
||||
@@ -113,7 +113,7 @@ const isQueryWithChangedResolution = (query: LokiQuery): boolean => {
|
||||
};
|
||||
|
||||
const isQueryWithChangedLineLimit = (query: LokiQuery): boolean => {
|
||||
return query.maxLines !== null || query.maxLines !== undefined;
|
||||
return query.maxLines !== null && query.maxLines !== undefined;
|
||||
};
|
||||
|
||||
const isQueryWithChangedLegend = (query: LokiQuery): boolean => {
|
||||
|
||||
Reference in New Issue
Block a user