bug: Fix undefined containerId object

Change-type: patch
Signed-off-by: Rich Bayliss <rich@balena.io>
This commit is contained in:
Rich Bayliss 2020-07-30 15:28:14 +01:00
parent 54597d6824
commit 59561132cc
No known key found for this signature in database
GPG Key ID: E53C4B4D18499E1A

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 {