Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Fix backport
  • Loading branch information
dprokop committed Jul 23, 2024
commit 25ba658e40cdd28858588ac5a3a326d4fc2fb5ef
2 changes: 1 addition & 1 deletion public/app/plugins/datasource/dashboard/datasource.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export class DashboardDatasource extends DataSourceApi<DashboardQuery> {

query(options: DataQueryRequest<DashboardQuery>): Observable<DataQueryResponse> {
const sceneScopedVar: ScopedVar | undefined = options.scopedVars?.__sceneObject;
let scene: SceneObject | undefined = sceneScopedVar ? (sceneScopedVar.valueOf() as SceneObject) : undefined;
let scene: SceneObject | undefined = sceneScopedVar ? (sceneScopedVar.value.valueOf() as SceneObject) : undefined;

if (options.requestId.indexOf('mixed') > -1) {
throw new Error('Dashboard data source cannot be used with Mixed data source.');
Expand Down