From 32cfeb8ebd3b0b4ec14f6030e94462a409e09e86 Mon Sep 17 00:00:00 2001 From: zhanghengxin Date: Tue, 7 Nov 2023 12:01:47 +0800 Subject: [PATCH] :bug: fix type of ports in compose config. --- main/src/components/Apps/ComposeConfig.vue | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/main/src/components/Apps/ComposeConfig.vue b/main/src/components/Apps/ComposeConfig.vue index 0414cbef..20e71ac6 100644 --- a/main/src/components/Apps/ComposeConfig.vue +++ b/main/src/components/Apps/ComposeConfig.vue @@ -160,6 +160,7 @@ import { nanoid } from "nanoid"; import find from "lodash/find"; import isArray from "lodash/isArray"; import isEmpty from "lodash/isEmpty"; +import isObject from "lodash/isObject"; const data = [ "AUDIT_CONTROL", @@ -553,7 +554,9 @@ export default { published, protocol, }; - } else { + } else if (isObject(item)) { + return item; + } else { return { host_ip: "", target: item+"",