Respond to PR Review
parent
2e1860336e
commit
3b34e3f7db
|
@ -16,6 +16,7 @@ import ThresholdsListTypeToggle from 'src/shared/components/ThresholdsListTypeTo
|
||||||
|
|
||||||
import {updateTableOptions} from 'src/dashboards/actions/cellEditorOverlay'
|
import {updateTableOptions} from 'src/dashboards/actions/cellEditorOverlay'
|
||||||
import {TIME_FIELD_DEFAULT} from 'src/shared/constants/tableGraph'
|
import {TIME_FIELD_DEFAULT} from 'src/shared/constants/tableGraph'
|
||||||
|
import {QueryConfig} from 'src/types/query'
|
||||||
|
|
||||||
interface Option {
|
interface Option {
|
||||||
text: string
|
text: string
|
||||||
|
@ -36,16 +37,6 @@ interface Options {
|
||||||
fixFirstColumn: boolean
|
fixFirstColumn: boolean
|
||||||
}
|
}
|
||||||
|
|
||||||
interface QueryConfig {
|
|
||||||
measurement: string
|
|
||||||
fields: [
|
|
||||||
{
|
|
||||||
alias: string
|
|
||||||
value: string
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
|
|
||||||
interface Props {
|
interface Props {
|
||||||
queryConfigs: QueryConfig[]
|
queryConfigs: QueryConfig[]
|
||||||
handleUpdateTableOptions: (options: Options) => void
|
handleUpdateTableOptions: (options: Options) => void
|
||||||
|
@ -83,7 +74,7 @@ export class TableOptions extends PureComponent<Props, {}> {
|
||||||
tableOptions,
|
tableOptions,
|
||||||
} = this.props
|
} = this.props
|
||||||
|
|
||||||
const tableSortByOptions = this.computedFieldNames.map(field => ({
|
const tableSortByOptions = this.fieldNames.map(field => ({
|
||||||
key: field.internalName,
|
key: field.internalName,
|
||||||
text: field.displayName || field.internalName,
|
text: field.displayName || field.internalName,
|
||||||
}))
|
}))
|
||||||
|
|
Loading…
Reference in New Issue