This commit is contained in:
Lachlan Kermode
2020-10-21 17:53:56 +03:00
parent 3d010e4558
commit adb5d6f959

View File

@@ -268,13 +268,11 @@ class Timeline extends React.Component {
}
getY (event) {
const { features, domain } = this.props
const { USE_CATEGORIES, GRAPH_NONLOCATED } = features
const { categories } = domain
const categoriesExist = USE_CATEGORIES && categories && categories.length > 0
if (!categoriesExist) {
return this.state.dims.trackHeight / 2
}