Przeglądaj źródła

fix(mqe): only parse none empty functions

bergquist 9 lat temu
rodzic
commit
51c4385c92
1 zmienionych plików z 3 dodań i 1 usunięć
  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
 			return nil, err
 		}
 		}
 
 
-		functions = append(functions, f)
+		if f.Func != "" {
+			functions = append(functions, f)
+		}
 	}
 	}
 
 
 	query.FunctionList = functions
 	query.FunctionList = functions