Skip to content

Commit

Permalink
Fix JS NPE when viewing specific range of PR commits (#27912)
Browse files Browse the repository at this point in the history
This should be the easiest fix.
While other solutions might be possible that exterminate the root cause,
they will not be as trivial.
  • Loading branch information
delvh authored Nov 6, 2023
1 parent 1ccdb54 commit 1f501da
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion web_src/js/components/DiffCommitSelector.vue
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ export default {
focusElem(elem, prevElem) {
if (elem) {
elem.tabIndex = 0;
prevElem.tabIndex = -1;
if (prevElem) prevElem.tabIndex = -1;
elem.focus();
}
},
Expand Down

0 comments on commit 1f501da

Please sign in to comment.