mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Chore: reduce null check errors/warnigns (#25223)
* fix a few null errors * more * flip logic * merge master * more * fewer changes * processor Co-authored-by: Torkel Ödegaard <torkel@grafana.com>
This commit is contained in:
@@ -40,9 +40,9 @@ export class MixedDatasource extends DataSourceApi<DataQuery> {
|
||||
const mixed: BatchedQueries[] = [];
|
||||
for (const key in sets) {
|
||||
const targets = sets[key];
|
||||
const dsName = targets[0].datasource;
|
||||
const dsName: string | undefined = targets[0].datasource;
|
||||
mixed.push({
|
||||
datasource: getDataSourceSrv().get(dsName),
|
||||
datasource: getDataSourceSrv().get(dsName, request.scopedVars),
|
||||
targets,
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user