mirror of
https://github.com/grafana/grafana.git
synced 2025-08-03 03:13:49 +08:00
fix unconvert issues
This commit is contained in:
@ -50,7 +50,7 @@ func (f *Float) UnmarshalJSON(data []byte) error {
|
||||
}
|
||||
switch x := v.(type) {
|
||||
case float64:
|
||||
f.Float64 = float64(x)
|
||||
f.Float64 = x
|
||||
case map[string]interface{}:
|
||||
err = json.Unmarshal(data, &f.NullFloat64)
|
||||
case nil:
|
||||
|
Reference in New Issue
Block a user