mirror of
https://github.com/bellingcat/ukraine-timemap.git
synced 2026-06-08 03:18:36 +03:00
fix corner case when bad data
This commit is contained in:
@@ -282,6 +282,8 @@ class Timeline extends React.Component {
|
||||
if (GRAPH_NONLOCATED && GRAPH_NONLOCATED.categories.includes(category)) {
|
||||
return this.state.dims.marginTop + domain.projects[project].offset + this.props.ui.eventRadius
|
||||
}
|
||||
if (!this.state.scaleY) return 0
|
||||
|
||||
return this.state.scaleY(category)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user