fix error when adding query after choosing cell
parent
f788517430
commit
5394c98b99
|
@ -194,11 +194,12 @@ class TableGraph extends Component {
|
|||
const timeField = fieldNames.find(
|
||||
field => field.internalName === TIME_FIELD_DEFAULT.internalName
|
||||
)
|
||||
const visibleTime = _.get(timeField, 'visible', true)
|
||||
|
||||
const isFixedRow = rowIndex === 0 && columnIndex > 0
|
||||
const isFixedColumn = fixFirstColumn && rowIndex > 0 && columnIndex === 0
|
||||
const isTimeData =
|
||||
timeField.visible &&
|
||||
visibleTime &&
|
||||
(verticalTimeAxis ? rowIndex > 0 && columnIndex === 0 : isFixedRow)
|
||||
const isFieldName = verticalTimeAxis ? rowIndex === 0 : columnIndex === 0
|
||||
|
||||
|
|
Loading…
Reference in New Issue