Explorar o código

fix(mqe): only parse none empty functions

bergquist %!s(int64=9) %!d(string=hai) anos
pai
achega
51c4385c92
Modificáronse 1 ficheiros con 3 adicións e 1 borrados
  1. 3 1
      pkg/tsdb/mqe/model_parser.go

+ 3 - 1
pkg/tsdb/mqe/model_parser.go

@@ -49,7 +49,9 @@ func (qp *QueryParser) Parse(model *simplejson.Json, dsInfo *models.DataSource,
 			return nil, err
 		}
 
-		functions = append(functions, f)
+		if f.Func != "" {
+			functions = append(functions, f)
+		}
 	}
 
 	query.FunctionList = functions