Prevent inversion of graph

pull/10616/head
Andrew Watkins 2017-12-12 11:44:43 -08:00 committed by Luke Morris
parent ac51c96c7f
commit b8d2421f23
1 changed files with 5 additions and 0 deletions
ui/src/shared/parsing

View File

@ -80,6 +80,11 @@ const getRange = (
}
}
// prevents inversion of graph
if (min > max) {
return [min, min + 1]
}
return [min, max]
}