Skip to content

Commit

Permalink
Fix JS NPE when viewing specific range of PR commits (go-gitea#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 and fuxiaohei committed Jan 17, 2024
1 parent 771951b commit 1f91f0e
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 1f91f0e

Please sign in to comment.