Merge pull request #1422 from balena-io/fix-containerId-undefined

bug: Fix undefined containerId object
This commit is contained in:
bulldozer-balena[bot] 2020-07-31 11:27:40 +00:00 committed by GitHub
commit fa4aa9498a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -135,7 +135,7 @@ export function safeAppClone(app) {
const containerIdForService = _.fromPairs(
_.map(app.services, (svc) => [
svc.serviceName,
svc.containerId.substr(0, 12),
svc.containerId != null ? svc.containerId.substr(0, 12) : '',
]),
);
return {