mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
tech: more tslint rules
This commit is contained in:
@@ -156,7 +156,7 @@ export class DataProcessor {
|
||||
});
|
||||
fieldParts.pop();
|
||||
}
|
||||
if (firstItem.type === 'docs'){
|
||||
if (firstItem.type === 'docs') {
|
||||
if (firstItem.datapoints.length === 0) {
|
||||
return [];
|
||||
}
|
||||
|
||||
@@ -113,7 +113,7 @@ class SingleStatCtrl extends MetricsPanelCtrl {
|
||||
|
||||
onDataReceived(dataList) {
|
||||
const data: any = {};
|
||||
if (dataList.length > 0 && dataList[0].type === 'table'){
|
||||
if (dataList.length > 0 && dataList[0].type === 'table') {
|
||||
this.dataType = 'table';
|
||||
const tableData = dataList.map(this.tableHandler.bind(this));
|
||||
this.setTableValues(tableData, data);
|
||||
|
||||
Reference in New Issue
Block a user