fix corner case when bad data

This commit is contained in:
Lachlan Kermode
2020-07-21 09:49:03 +02:00
parent 8edad609f7
commit 84198be0d6

View File

@@ -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)
}