Skip to content

Commit

Permalink
fix: build selector
Browse files Browse the repository at this point in the history
- make it count from filtered items, not all accordion items
  • Loading branch information
mari1912 committed Jul 19, 2024
1 parent 32cb13a commit e677e4c
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ const TreeDetailsBuildTab = ({
<TableInfo
startIndex={startIndex + 1}
endIndex={endIndex}
totalTrees={accordionContent?.length ?? 0}
totalTrees={filteredContent?.length ?? 0}
itemsPerPage={ITEMS_PER_PAGE}
onClickBack={onClickGoBack}
onClickForward={onClickGoForward}
Expand All @@ -171,7 +171,7 @@ const TreeDetailsBuildTab = ({
<TableInfo
startIndex={startIndex + 1}
endIndex={endIndex}
totalTrees={accordionContent?.length ?? 0}
totalTrees={filteredContent?.length ?? 0}
itemsPerPage={ITEMS_PER_PAGE}
onClickBack={onClickGoBack}
onClickForward={onClickGoForward}
Expand Down

0 comments on commit e677e4c

Please sign in to comment.