Skip to content

Commit

Permalink
fix: resetSortButtons this undefined
Browse files Browse the repository at this point in the history
  • Loading branch information
sshivaditya committed Nov 6, 2024
1 parent c373e0a commit 819d6d5
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/home/sorting/sorting-manager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,11 +62,9 @@ export class SortingManager {

// Reset any active sort buttons when searching
if (filterText) {
//Check if there is any active sort button
const activeSortButton = this._sortingButtons.querySelector('input[type="radio"]:checked');
if (activeSortButton) {
if (this) {
this._resetSortButtons();
}
}
}

// Get issue IDs and search results
Expand Down

0 comments on commit 819d6d5

Please sign in to comment.