diff --git a/client/src/components/Commits.js b/client/src/components/Commits.js index cf9e60e..9d49762 100644 --- a/client/src/components/Commits.js +++ b/client/src/components/Commits.js @@ -8,8 +8,8 @@ import Loading from './Loading'; class Commits extends React.Component { componentDidMount() { - this.props.loadCommits(); this.props.loadBuilds(); + this.props.loadCommits(); } renderCommits = commit => { return ( @@ -85,8 +85,8 @@ const mapStateToProps = ({ isLoading, commits, error, branch,page }) => ({ }); const mapDispatchToProps = dispatch => ({ - loadCommits: next => dispatch(loadCommits(next)), - loadBuilds: () => dispatch(loadBuilds()) + loadBuilds: () => dispatch(loadBuilds()), + loadCommits: next => dispatch(loadCommits(next)) }); export default connect(