mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
tech(): replace spaces to handle input more graceful
This commit is contained in:
parent
9dd6cf45ac
commit
c9b7f8603e
2
pkg/tsdb/testdata/scenarios.go
vendored
2
pkg/tsdb/testdata/scenarios.go
vendored
@ -90,6 +90,8 @@ func init() {
|
||||
queryRes := tsdb.NewQueryResult()
|
||||
|
||||
stringInput := query.Model.Get("stringInput").MustString()
|
||||
stringInput = strings.Replace(stringInput, " ", "", -1)
|
||||
|
||||
values := []null.Float{}
|
||||
for _, strVal := range strings.Split(stringInput, ",") {
|
||||
if strVal == "null" {
|
||||
|
Loading…
Reference in New Issue
Block a user