Merge pull request #3604 from influxdata/bugfix/table-graph-series-name
Bugfix/table graph series namepull/10616/head
commit
e61304aa85
|
@ -537,10 +537,6 @@ class TableGraph extends Component<Props, State> {
|
|||
cellType: 'table',
|
||||
})
|
||||
|
||||
// Argument of type '{ colors: ColorString; lastValue: ReactText; cellType: "table"; }' is not assignable to parameter of type '{ colors: any; lastValue: any; cellType?: CellType; }'.
|
||||
// Types of property 'cellType' are incompatible.
|
||||
// Type '"table"' is not assignable to type 'CellType'.
|
||||
|
||||
cellStyle = {
|
||||
...style,
|
||||
backgroundColor: bgColor,
|
||||
|
|
|
@ -89,6 +89,7 @@ const flattenGroupBySeries = (
|
|||
},
|
||||
],
|
||||
responseIndex,
|
||||
isGroupBy: true,
|
||||
},
|
||||
]
|
||||
|
||||
|
@ -142,10 +143,11 @@ const constructResults = (
|
|||
|
||||
const constructSerieses = (results: Result[]): Series[] => {
|
||||
return _.flatten(
|
||||
fastMap<Result, Series[]>(results, ({series, responseIndex}) =>
|
||||
fastMap<Result, Series[]>(results, ({series, responseIndex, isGroupBy}) =>
|
||||
fastMap<TimeSeriesSeries, Series>(series, (s, index) => ({
|
||||
...s,
|
||||
responseIndex,
|
||||
isGroupBy,
|
||||
seriesIndex: index,
|
||||
}))
|
||||
)
|
||||
|
|
Loading…
Reference in New Issue