diff --git a/client/src/components/Commits.js b/client/src/components/Commits.js index 9d49762..6d25858 100644 --- a/client/src/components/Commits.js +++ b/client/src/components/Commits.js @@ -12,6 +12,12 @@ class Commits extends React.Component { this.props.loadCommits(); } renderCommits = commit => { + let filteredBs = this.props.buildData.buildSets + .map(obj => { + return obj; + }) + .find(item => item.sourcestamps[0].revision === commit.sha); + // console.log('bsid:' + filteredBs.bsid + ' sha:' + filteredBs.sourcestamps[0].revision + 'commit:'+commit.sha); return (
@@ -76,12 +82,13 @@ class Commits extends React.Component { } // prettier-ignore -const mapStateToProps = ({ isLoading, commits, error, branch,page }) => ({ +const mapStateToProps = ({ isLoading, commits, error, branch,page,buildData}) => ({ isLoading, commits, error, branch, - page + page, + buildData }); const mapDispatchToProps = dispatch => ({