grafana / scenes

Build Grafana dashboards directly in your Grafana app plugins.
https://grafana.com/developers/scenes
Apache License 2.0
133 stars 20 forks source link

SceneQueryRunner: When waiting for a variable to load, and PanelData is undefined, we should create a valid PanelData object. #791

Closed oscarkilhed closed 3 months ago

oscarkilhed commented 3 months ago

If this.state.data is undefined. We're going to create the object { state: LoadingState.Loading } because we're spreading undefined.

We can instead spread emptyPanelData and set data to a valid object.

grafanabot commented 3 months ago

:rocket: PR was released in v5.0.1 :rocket: