web: fix flow selection

This commit is contained in:
Maximilian Hils 2016-07-19 03:23:40 -07:00
parent 518c28fff9
commit 18dd84b908
2 changed files with 2 additions and 2 deletions

View File

@ -182,7 +182,7 @@ export function selectRelative(shift) {
let minIndex = 0
let maxIndex = getState().flowView.data.length - 1
let newIndex
if (!currentSelectionIndex) {
if (currentSelectionIndex === undefined) {
newIndex = (shift < 0) ? minIndex : maxIndex
} else {
newIndex = currentSelectionIndex + shift

View File

@ -180,7 +180,7 @@ export function onKeyDown(e) {
break
case Key.ESC:
dispatch(selectFlowRelative(null))
dispatch(flowsActions.select(null))
break
case Key.LEFT: