Skip to content

Commit

Permalink
Fix shortcut handling in react-error-overlay (#2238)
Browse files Browse the repository at this point in the history
  • Loading branch information
Gandem authored and Timer committed May 19, 2017
1 parent af7fbae commit 499adbe
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 499adbe

Please sign in to comment.