Commit 499adbe7 authored by Nayef Ghattas's avatar Nayef Ghattas Committed by Joe Haddad
Browse files

Fix shortcut handling in react-error-overlay (#2238)

parent af7fbae9
Showing with 4 additions and 0 deletions
+4 -0
...@@ -110,6 +110,10 @@ function renderErrorByIndex(index: number) { ...@@ -110,6 +110,10 @@ function renderErrorByIndex(index: number) {
} }
function switchError(offset) { function switchError(offset) {
if (errorReferences.length === 0) {
return;
}
let nextView = currReferenceIndex + offset; let nextView = currReferenceIndex + offset;
if (nextView < 0) { if (nextView < 0) {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment