mirror of
https://github.com/bellingcat/ukraine-timemap.git
synced 2026-06-12 21:38:35 +03:00
check for USE_CATEGORIES
This commit is contained in:
@@ -268,14 +268,16 @@ 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
|
||||
|
||||
const categoriesExist = categories && categories.length > 0
|
||||
|
||||
const { GRAPH_NONLOCATED } = features
|
||||
|
||||
if (!categoriesExist) { return this.state.dims.trackHeight / 2 }
|
||||
if (!categoriesExist) {
|
||||
return this.state.dims.trackHeight / 2
|
||||
}
|
||||
|
||||
const { category, project } = event
|
||||
|
||||
|
||||
Reference in New Issue
Block a user