From 3fa63cfc34668781c7f9b3caafe6d9d400b06b7f Mon Sep 17 00:00:00 2001 From: Sofia Papagiannaki Date: Thu, 20 Feb 2020 11:39:48 +0200 Subject: [PATCH] Fix linting issues --- .../dashboard/dashgrid/PanelHeader/PanelHeaderCorner.tsx | 1 - public/app/plugins/datasource/elasticsearch/datasource.test.ts | 1 + public/app/plugins/datasource/elasticsearch/elastic_response.ts | 2 +- 3 files changed, 2 insertions(+), 2 deletions(-) diff --git a/public/app/features/dashboard/dashgrid/PanelHeader/PanelHeaderCorner.tsx b/public/app/features/dashboard/dashgrid/PanelHeader/PanelHeaderCorner.tsx index 9275b076b99..bee3dc990a2 100644 --- a/public/app/features/dashboard/dashgrid/PanelHeader/PanelHeaderCorner.tsx +++ b/public/app/features/dashboard/dashgrid/PanelHeader/PanelHeaderCorner.tsx @@ -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', diff --git a/public/app/plugins/datasource/elasticsearch/datasource.test.ts b/public/app/plugins/datasource/elasticsearch/datasource.test.ts index 636b717f519..896793d21d7 100644 --- a/public/app/plugins/datasource/elasticsearch/datasource.test.ts +++ b/public/app/plugins/datasource/elasticsearch/datasource.test.ts @@ -625,6 +625,7 @@ describe('ElasticDatasource', function(this: any) { timeField: '@time', }, } as DataSourceInstanceSettings, + backendSrv as BackendSrv, templateSrv as TemplateSrv, timeSrv as TimeSrv ); diff --git a/public/app/plugins/datasource/elasticsearch/elastic_response.ts b/public/app/plugins/datasource/elasticsearch/elastic_response.ts index 0d3fc40ad49..31f114fae8c 100644 --- a/public/app/plugins/datasource/elasticsearch/elastic_response.ts +++ b/public/app/plugins/datasource/elasticsearch/elastic_response.ts @@ -479,7 +479,7 @@ const flattenHits = (hits: Doc[]): { docs: Array>; 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) : {};