mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Loki: Fix tracking of queries_with_changed_line_limit_count
(#60091)
* change line limit tracking * updated test
This commit is contained in:
parent
f1b5014efd
commit
5ad95a2952
@ -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 => {
|
||||
|
Loading…
Reference in New Issue
Block a user