Skip to content

Commit

Permalink
🐛 fix type of ports in compose config.
Browse files Browse the repository at this point in the history
  • Loading branch information
zhanghengxin committed Nov 7, 2023
1 parent 8b70b5c commit 32cfeb8
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion main/src/components/Apps/ComposeConfig.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -553,7 +554,9 @@ export default {
published,
protocol,
};
} else {
} else if (isObject(item)) {
return item;
} else {
return {
host_ip: "",
target: item+"",
Expand Down

0 comments on commit 32cfeb8

Please sign in to comment.