Merge pull request #3493 from influxdata/bugfix/TS-error-on-table-merge
Use predefined TimeSeriesServerResponse type in LayoutCellpull/3492/head
commit
ca0d621a0e
|
@ -12,25 +12,7 @@ import {ErrorHandling} from 'src/shared/decorators/errors'
|
||||||
import {dataToCSV} from 'src/shared/parsing/dataToCSV'
|
import {dataToCSV} from 'src/shared/parsing/dataToCSV'
|
||||||
import {timeSeriesToTableGraph} from 'src/utils/timeSeriesTransformers'
|
import {timeSeriesToTableGraph} from 'src/utils/timeSeriesTransformers'
|
||||||
import {Cell, CellQuery} from 'src/types/dashboard'
|
import {Cell, CellQuery} from 'src/types/dashboard'
|
||||||
|
import {TimeSeriesServerResponse} from 'src/types/series'
|
||||||
interface Series {
|
|
||||||
columns: string[]
|
|
||||||
name: string
|
|
||||||
values: number[][]
|
|
||||||
}
|
|
||||||
|
|
||||||
interface Result {
|
|
||||||
statement_id: number
|
|
||||||
series: Series[]
|
|
||||||
}
|
|
||||||
|
|
||||||
interface Response {
|
|
||||||
results: Result[]
|
|
||||||
}
|
|
||||||
|
|
||||||
interface Data {
|
|
||||||
response: Response[]
|
|
||||||
}
|
|
||||||
|
|
||||||
interface Props {
|
interface Props {
|
||||||
cell: Cell
|
cell: Cell
|
||||||
|
@ -40,7 +22,7 @@ interface Props {
|
||||||
onSummonOverlayTechnologies: (cell: Cell) => void
|
onSummonOverlayTechnologies: (cell: Cell) => void
|
||||||
isEditable: boolean
|
isEditable: boolean
|
||||||
onCancelEditCell: () => void
|
onCancelEditCell: () => void
|
||||||
cellData: Data[]
|
cellData: TimeSeriesServerResponse[]
|
||||||
}
|
}
|
||||||
|
|
||||||
@ErrorHandling
|
@ErrorHandling
|
||||||
|
|
Loading…
Reference in New Issue