From e841c0693473b9744815c998113a28cfb3cdd770 Mon Sep 17 00:00:00 2001 From: Sebastian Sdorra Date: Wed, 17 Oct 2018 10:57:01 +0200 Subject: [PATCH] fix paging url --- scm-ui/src/repos/containers/BranchRoot.js | 2 +- scm-ui/src/repos/containers/Changesets.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/scm-ui/src/repos/containers/BranchRoot.js b/scm-ui/src/repos/containers/BranchRoot.js index 1a181ce0b8..208f1e266b 100644 --- a/scm-ui/src/repos/containers/BranchRoot.js +++ b/scm-ui/src/repos/containers/BranchRoot.js @@ -56,7 +56,7 @@ class BranchRoot extends React.Component { branchSelected = (branch: Branch) => { const url = this.matchedUrl(); this.props.history.push( - `${url}/${encodeURIComponent(branch.name)}/changesets` + `${url}/${encodeURIComponent(branch.name)}/changesets/` ); }; diff --git a/scm-ui/src/repos/containers/Changesets.js b/scm-ui/src/repos/containers/Changesets.js index 21417b6715..5c6934107e 100644 --- a/scm-ui/src/repos/containers/Changesets.js +++ b/scm-ui/src/repos/containers/Changesets.js @@ -79,9 +79,9 @@ class Changesets extends React.Component { }; renderPaginator = () => { - const { list } = this.props; + const { page, list } = this.props; if (list) { - return ; + return ; } return null; };