Skip to content

Commit

Permalink
Fix shortcut handling in react-error-overlay (facebook#2238)
Browse files Browse the repository at this point in the history
  • Loading branch information
Gandem authored and romaindso committed Jul 10, 2017
1 parent 3e0cac9 commit 06d8a83
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/react-error-overlay/src/overlay.js
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,10 @@ function renderErrorByIndex(index: number) {
}

function switchError(offset) {
if (errorReferences.length === 0) {
return;
}

let nextView = currReferenceIndex + offset;

if (nextView < 0) {
Expand Down

0 comments on commit 06d8a83

Please sign in to comment.