mirror of
https://github.com/bellingcat/ukraine-timemap.git
synced 2026-06-08 03:18:36 +03:00
check for USE_CATEGORIES
This commit is contained in:
@@ -21,13 +21,10 @@ module.exports = {
|
||||
// tiles: 'your-mapbox-account-name/x5678-map-id'
|
||||
},
|
||||
features: {
|
||||
USE_CATEGORIES: true,
|
||||
CATEGORIES_AS_FILTERS: true,
|
||||
USE_CATEGORIES: false,
|
||||
USE_ASSOCIATIONS: true,
|
||||
USE_SOURCES: true,
|
||||
USE_SOURCES: false,
|
||||
USE_COVER: true,
|
||||
USE_SITES: false,
|
||||
USE_SHAPES: false,
|
||||
GRAPH_NONLOCATED: false,
|
||||
HIGHLIGHT_GROUPS: false
|
||||
}
|
||||
|
||||
@@ -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