Skip to content

Commit

Permalink
fix: resetSortButtons undefined
Browse files Browse the repository at this point in the history
  • Loading branch information
sshivaditya committed Nov 6, 2024
1 parent 5d905d9 commit c901a75
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/home/sorting/sorting-manager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,11 @@ export class SortingManager {
if (!filters) throw new Error(`${filtersId} not found`);
this._toolBarFilters = filters;
this._instanceId = instanceId;
this._filterTextBox = this._generateFilterTextBox();

// Initialize sorting buttons first
this._sortingButtons = this._generateSortingButtons(sortingOptions);
// Then initialize filter text box
this._filterTextBox = this._generateFilterTextBox();

// Initialize sorting states to 'unsorted' for all options
sortingOptions.forEach((option) => {
Expand Down

0 comments on commit c901a75

Please sign in to comment.