[v11.0.x] DashboardScene: Fixes inspect with transforms issue (#88862)
DashboardScene: Fixes inspect with transforms issue (#88843)
* DashboardScene: Fixes inspect with transforms issue
* Update
(cherry picked from commit bdfa96a6d3)
Co-authored-by: Torkel Ödegaard <torkel@grafana.com>
This commit is contained in:
co-authored by
Torkel Ödegaard
parent
cf15409360
commit
aa97cbdb03
@@ -81,8 +81,8 @@ function hasTransformations(dataProvider: SceneDataProvider) {
|
||||
}
|
||||
|
||||
function getDataProviderToSubscribeTo(dataProvider: SceneDataProvider, withTransforms: boolean) {
|
||||
if (withTransforms && dataProvider instanceof SceneDataTransformer) {
|
||||
return dataProvider.state.$data!;
|
||||
if (!withTransforms && dataProvider instanceof SceneDataTransformer && dataProvider.state.$data) {
|
||||
return dataProvider.state.$data;
|
||||
}
|
||||
|
||||
return dataProvider;
|
||||
|
||||
Reference in New Issue
Block a user