mirror of
https://github.com/bellingcat/ukraine-timemap.git
synced 2026-06-11 12:58:35 +03:00
lint
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user