From 3b34e3f7db90d94a3009ca429a224d6ab1c6842d Mon Sep 17 00:00:00 2001 From: Iris Scholten Date: Mon, 9 Apr 2018 15:15:02 -0700 Subject: [PATCH] Respond to PR Review --- ui/src/dashboards/components/TableOptions.tsx | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) diff --git a/ui/src/dashboards/components/TableOptions.tsx b/ui/src/dashboards/components/TableOptions.tsx index 317f615b28..7b72638fe7 100644 --- a/ui/src/dashboards/components/TableOptions.tsx +++ b/ui/src/dashboards/components/TableOptions.tsx @@ -16,6 +16,7 @@ import ThresholdsListTypeToggle from 'src/shared/components/ThresholdsListTypeTo import {updateTableOptions} from 'src/dashboards/actions/cellEditorOverlay' import {TIME_FIELD_DEFAULT} from 'src/shared/constants/tableGraph' +import {QueryConfig} from 'src/types/query' interface Option { text: string @@ -36,16 +37,6 @@ interface Options { fixFirstColumn: boolean } -interface QueryConfig { - measurement: string - fields: [ - { - alias: string - value: string - } - ] -} - interface Props { queryConfigs: QueryConfig[] handleUpdateTableOptions: (options: Options) => void @@ -83,7 +74,7 @@ export class TableOptions extends PureComponent { tableOptions, } = this.props - const tableSortByOptions = this.computedFieldNames.map(field => ({ + const tableSortByOptions = this.fieldNames.map(field => ({ key: field.internalName, text: field.displayName || field.internalName, }))