Fix linting issues
This commit is contained in:
committed by
Sofia Papagiannaki
parent
f416c57743
commit
3fa63cfc34
@@ -7,7 +7,6 @@ import { getLocationSrv } from '@grafana/runtime';
|
||||
import { PanelModel } from 'app/features/dashboard/state/PanelModel';
|
||||
import templateSrv from 'app/features/templating/template_srv';
|
||||
import { getTimeSrv, TimeSrv } from 'app/features/dashboard/services/TimeSrv';
|
||||
import { InspectTab } from '../../components/Inspector/PanelInspector';
|
||||
|
||||
enum InfoMode {
|
||||
Error = 'Error',
|
||||
|
||||
@@ -625,6 +625,7 @@ describe('ElasticDatasource', function(this: any) {
|
||||
timeField: '@time',
|
||||
},
|
||||
} as DataSourceInstanceSettings<ElasticsearchOptions>,
|
||||
backendSrv as BackendSrv,
|
||||
templateSrv as TemplateSrv,
|
||||
timeSrv as TimeSrv
|
||||
);
|
||||
|
||||
@@ -479,7 +479,7 @@ const flattenHits = (hits: Doc[]): { docs: Array<Record<string, any>>; propNames
|
||||
const docs: any[] = [];
|
||||
// We keep a list of all props so that we can create all the fields in the dataFrame, this can lead
|
||||
// to wide sparse dataframes in case the scheme is different per document.
|
||||
let propNames: string[] = [];
|
||||
const propNames: string[] = [];
|
||||
|
||||
for (const hit of hits) {
|
||||
const flattened = hit._source ? flatten(hit._source, null) : {};
|
||||
|
||||
Reference in New Issue
Block a user