screwdriver-api 7.0.67 → 7.0.69

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "screwdriver-api",
3
- "version": "7.0.67",
3
+ "version": "7.0.69",
4
4
  "description": "API server for the Screwdriver.cd service",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -914,7 +914,9 @@ const buildsPlugin = {
914
914
  jobId: nextJobId
915
915
  });
916
916
 
917
- finishedInternalBuilds = finishedInternalBuilds.concat(nextBuild);
917
+ if (nextBuild) {
918
+ finishedInternalBuilds = finishedInternalBuilds.concat(nextBuild);
919
+ }
918
920
  }
919
921
 
920
922
  fillParentBuilds(parentBuilds, current, finishedInternalBuilds);