We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 63aa460 commit f4cfb61Copy full SHA for f4cfb61
src/app/components/layout/Pagination.tsx
@@ -43,10 +43,11 @@ class Pagination extends Component<PaginationProps, PaginationState> {
43
*/
44
public componentDidUpdate(prevProps: PaginationProps): void {
45
if (this.props !== prevProps) {
46
+ const paginationRange = this.updatePaginationRange();
47
this.setState(
- { paginationRange: this.updatePaginationRange() },
48
+ { paginationRange },
49
() => this.setState(
- { lastPage: this.state.paginationRange[this.state.paginationRange.length - 1] as number }
50
+ { lastPage: paginationRange[paginationRange.length - 1] as number }
51
)
52
);
53
}
0 commit comments