order of build & commit load

This commit is contained in:
Ayush Kumar Sinha 2019-07-03 20:39:19 +05:30
parent 362403d3b2
commit 2a26373f4a

View File

@ -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(