From 59561132cc11074d2acf4ac06b477196b42cf569 Mon Sep 17 00:00:00 2001 From: Rich Bayliss Date: Thu, 30 Jul 2020 15:28:14 +0100 Subject: [PATCH] bug: Fix undefined containerId object Change-type: patch Signed-off-by: Rich Bayliss --- src/device-api/common.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/device-api/common.js b/src/device-api/common.js index c3824b7e..6411f60c 100644 --- a/src/device-api/common.js +++ b/src/device-api/common.js @@ -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 {