Don't render messed up builds

This commit is contained in:
Jake Howard 2016-03-11 21:21:58 +00:00
parent 92e66a470d
commit 8f154d1cbf

View file

@ -29,6 +29,9 @@ export default class BuildList extends React.Component {
} }
renderRow(build) { renderRow(build) {
if (build.build_time_millis < 1) {
return null;
}
const statusColour = build.status === 'failed' ? const statusColour = build.status === 'failed' ?
GlobalStyles.get('CIRCLE_TEST_FAIL') : GlobalStyles.get('CIRCLE_TEST_FAIL') :
GlobalStyles.get('CIRCLE_TEST_PASS'); GlobalStyles.get('CIRCLE_TEST_PASS');