fix error when adding query after choosing cell

pull/3030/head
Iris Scholten 2018-03-21 16:57:55 -07:00
parent f788517430
commit 5394c98b99
1 changed files with 2 additions and 1 deletions

View File

@ -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