Skip to content

Commit

Permalink
fix: add event listener conditionally
Browse files Browse the repository at this point in the history
  • Loading branch information
teodora-sandu committed Jun 10, 2024
1 parent eb5c2ae commit b21e406
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -178,10 +178,10 @@
navigateToIssue(i);
});
}
document.getElementById('ignore-line-issue')!.addEventListener('click', () => {
document.getElementById('ignore-line-issue')?.addEventListener('click', () => {
ignoreIssue(true);
});
document.getElementById('ignore-file-issue')!.addEventListener('click', () => {
document.getElementById('ignore-file-issue')?.addEventListener('click', () => {
ignoreIssue(false);
});
document.getElementById('position-line')!.addEventListener('click', () => {
Expand Down

0 comments on commit b21e406

Please sign in to comment.