Skip to content

Commit

Permalink
Fix JS NPE when viewing specific range of PR commits (#27912) (#27923)
Browse files Browse the repository at this point in the history
Backport #27912 by @delvh

This should be the easiest fix.
While other solutions might be possible that exterminate the root cause,
they will not be as trivial.

Co-authored-by: delvh <dev.lh@web.de>
  • Loading branch information
GiteaBot and delvh authored Nov 6, 2023
1 parent 81d233d commit 49f82ac
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 49f82ac

Please sign in to comment.