mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-12 16:35:45 +01:00
fixed bug in users paging
This commit is contained in:
@@ -50,9 +50,9 @@ class Users extends React.Component<Props> {
|
|||||||
/**
|
/**
|
||||||
* reflect page transitions in the uri
|
* reflect page transitions in the uri
|
||||||
*/
|
*/
|
||||||
componentDidUpdate = (prevProps: Props) => {
|
componentDidUpdate() {
|
||||||
const { page, list } = this.props;
|
const { page, list } = this.props;
|
||||||
if (list.page) {
|
if (list && list.page || list.page === 0) {
|
||||||
// backend starts paging by 0
|
// backend starts paging by 0
|
||||||
const statePage: number = list.page + 1;
|
const statePage: number = list.page + 1;
|
||||||
if (page !== statePage) {
|
if (page !== statePage) {
|
||||||
|
|||||||
Reference in New Issue
Block a user