Merge pull request #3493 from influxdata/bugfix/TS-error-on-table-merge

Use predefined TimeSeriesServerResponse type in LayoutCell
pull/3492/head
Deniz Kusefoglu 2018-05-21 10:29:02 -07:00 committed by GitHub
commit ca0d621a0e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 20 deletions

View File

@ -12,25 +12,7 @@ import {ErrorHandling} from 'src/shared/decorators/errors'
import {dataToCSV} from 'src/shared/parsing/dataToCSV'
import {timeSeriesToTableGraph} from 'src/utils/timeSeriesTransformers'
import {Cell, CellQuery} from 'src/types/dashboard'
interface Series {
columns: string[]
name: string
values: number[][]
}
interface Result {
statement_id: number
series: Series[]
}
interface Response {
results: Result[]
}
interface Data {
response: Response[]
}
import {TimeSeriesServerResponse} from 'src/types/series'
interface Props {
cell: Cell
@ -40,7 +22,7 @@ interface Props {
onSummonOverlayTechnologies: (cell: Cell) => void
isEditable: boolean
onCancelEditCell: () => void
cellData: Data[]
cellData: TimeSeriesServerResponse[]
}
@ErrorHandling