From 4531985032b4d0b26a12a81465e56a3ede3eee44 Mon Sep 17 00:00:00 2001 From: Ben Phelps Date: Mon, 12 Sep 2022 06:18:51 +0300 Subject: [PATCH] fix standalone docker widget --- src/utils/service-helpers.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/utils/service-helpers.js b/src/utils/service-helpers.js index b32e93e70..b9ceabcfc 100644 --- a/src/utils/service-helpers.js +++ b/src/utils/service-helpers.js @@ -110,13 +110,18 @@ export function cleanServiceGroups(groups) { const cleanedService = { ...service }; if (cleanedService.widget) { - const { type } = cleanedService.widget; + const { type, server, container } = cleanedService.widget; cleanedService.widget = { type, service_name: service.name, service_group: serviceGroup.name, }; + + if (type === "docker") { + cleanedService.widget.server = server; + cleanedService.widget.container = container; + } } return cleanedService;