Skip to content

Commit

Permalink
Fix bug with accidentally selecting reviewer details.status-actions
Browse files Browse the repository at this point in the history
  • Loading branch information
davegaeddert committed Jan 21, 2021
1 parent 8520572 commit 77e488a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/sidebar.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ export default class Sidebar extends React.Component {
}

findReports(targetNode) {
const links = targetNode.querySelectorAll(".status-actions");
const links = targetNode.querySelectorAll("a.status-actions"); // There are other details.status-actions too which we don't want
const reports = {};
links.forEach((link) => {
const statusName = link.parentNode.previousElementSibling.children[0].innerText.trim();
Expand Down

0 comments on commit 77e488a

Please sign in to comment.