mirror of
https://git.mirrors.martin98.com/https://github.com/SigNoz/signoz
synced 2025-08-11 23:59:00 +08:00
fix: filter items can be empty (#1586)
This commit is contained in:
parent
6b6f494574
commit
2c9794a6c6
@ -49,6 +49,9 @@ func ParseMetricQueryRangeParams(r *http.Request) (*model.QueryRangeParamsV2, *m
|
||||
// replace the variables in metrics builder filter item with actual value
|
||||
if postData.CompositeMetricQuery.QueryType == model.QUERY_BUILDER {
|
||||
for _, query := range postData.CompositeMetricQuery.BuilderQueries {
|
||||
if query.TagFilters == nil || len(query.TagFilters.Items) == 0 {
|
||||
continue
|
||||
}
|
||||
for idx := range query.TagFilters.Items {
|
||||
item := &query.TagFilters.Items[idx]
|
||||
value := item.Value
|
||||
|
Loading…
x
Reference in New Issue
Block a user