From ea34f7e6b8ef6c416c1331da4768f89ce8ba429c Mon Sep 17 00:00:00 2001 From: Philipp Czora Date: Wed, 19 Sep 2018 14:46:01 +0200 Subject: [PATCH] Fixed displaying of loading state --- scm-ui/src/repos/containers/Changesets.js | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/scm-ui/src/repos/containers/Changesets.js b/scm-ui/src/repos/containers/Changesets.js index 5f0d6d9486..21c8211d90 100644 --- a/scm-ui/src/repos/containers/Changesets.js +++ b/scm-ui/src/repos/containers/Changesets.js @@ -43,6 +43,8 @@ class Changesets extends React.Component { this.state = {}; } + onPageChange = (link: string) => { + }; componentDidMount() { const { namespace, name } = this.props.repository; const branchName = this.props.match.params.branch; @@ -112,7 +114,12 @@ class Changesets extends React.Component { const mapStateToProps = (state, ownProps: Props) => { const { namespace, name } = ownProps.repository; - const loading = isFetchChangesetsPending(namespace, name, state); + const loading = isFetchChangesetsPending( + state, + namespace, + name, + ownProps.match.params.branch + ); const changesets = getChangesets( state, namespace,