mirror of
https://github.com/grafana/grafana.git
synced 2025-07-29 15:22:31 +08:00
Fix unmaarshal of double pointer (#47586)
* Fix unmaarshal of double pointer * update sdk version
This commit is contained in:
@ -1095,8 +1095,8 @@ func restoreDashboardVersionScenario(t *testing.T, desc string, url string, rout
|
||||
}
|
||||
|
||||
func (sc *scenarioContext) ToJSON() *simplejson.Json {
|
||||
var result *simplejson.Json
|
||||
err := json.NewDecoder(sc.resp.Body).Decode(&result)
|
||||
result := simplejson.New()
|
||||
err := json.NewDecoder(sc.resp.Body).Decode(result)
|
||||
require.NoError(sc.t, err)
|
||||
return result
|
||||
}
|
||||
|
Reference in New Issue
Block a user