From c7607b047b1ae875b247256f81c12c2978fd841a Mon Sep 17 00:00:00 2001 From: ebb-tide Date: Mon, 9 Apr 2018 21:06:09 -0700 Subject: [PATCH] Resolve typescript errors --- ui/src/dashboards/components/GraphOptionsCustomizableField.tsx | 2 +- ui/src/dashboards/components/GraphOptionsSortableField.tsx | 2 +- ui/src/dashboards/components/TableOptions.tsx | 1 - ui/src/utils/timeSeriesTransformers.js | 2 +- 4 files changed, 3 insertions(+), 4 deletions(-) diff --git a/ui/src/dashboards/components/GraphOptionsCustomizableField.tsx b/ui/src/dashboards/components/GraphOptionsCustomizableField.tsx index 15749c15f..298989129 100644 --- a/ui/src/dashboards/components/GraphOptionsCustomizableField.tsx +++ b/ui/src/dashboards/components/GraphOptionsCustomizableField.tsx @@ -29,7 +29,7 @@ class GraphOptionsCustomizableField extends PureComponent { return (
{ - render() { + public render() { const { internalName, displayName, diff --git a/ui/src/dashboards/components/TableOptions.tsx b/ui/src/dashboards/components/TableOptions.tsx index 70e70813a..79fe340fa 100644 --- a/ui/src/dashboards/components/TableOptions.tsx +++ b/ui/src/dashboards/components/TableOptions.tsx @@ -87,7 +87,6 @@ export class TableOptions extends PureComponent { const orderedFields = addedFields.map((f, i) => { return {...f, order: i} }) - console.log('orderedFields', orderedFields) handleUpdateTableOptions({ ...tableOptions, fieldNames: orderedFields, diff --git a/ui/src/utils/timeSeriesTransformers.js b/ui/src/utils/timeSeriesTransformers.js index 3aaf4c177..ca6c02a0e 100644 --- a/ui/src/utils/timeSeriesTransformers.js +++ b/ui/src/utils/timeSeriesTransformers.js @@ -200,7 +200,7 @@ export const filterTableColumns = (data, fieldNames) => { export const orderTableColumns = (data, fieldNames) => { const fieldsSortOrder = fieldNames.map(fieldName => { - return data[0].findIndex(dataLabel => dataLabel == fieldName.internalName) + return data[0].findIndex(dataLabel => dataLabel === fieldName.internalName) }) const orderedData = map(data, row => { return row.map((v, j, arr) => arr[fieldsSortOrder[j]])