Make code more readable

pull/2829/head
Alex P 2018-02-26 18:42:32 -08:00
parent 31d3374417
commit 97b7048c25
1 changed files with 2 additions and 2 deletions

View File

@ -16,9 +16,9 @@ class NewAnnotation extends Component {
enforceGraphBounds = newTime => { enforceGraphBounds = newTime => {
const {dygraph} = this.props const {dygraph} = this.props
const xRangeStart = dygraph.xAxisRange()[0] const [xStart] = dygraph.xAxisRange()
return newTime < xRangeStart ? `${xRangeStart}` : `${newTime}` return newTime < xStart ? `${xStart}` : `${newTime}`
} }
handleMouseDown = e => { handleMouseDown = e => {