Skip to content

Commit a1ceb5b

Browse files
committed
fix empty command
1 parent b3608a0 commit a1ceb5b

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

client/src/components/apps/form.vue

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2031,8 +2031,10 @@ export default defineComponent({
20312031
this.setSSL();
20322032
20332033
let command = [] as string[];
2034-
if (this.docker.command != '') {
2034+
if (this.docker.command.length > 0) {
20352035
command = this.docker.command.split(' ');
2036+
} else {
2037+
command = [];
20362038
}
20372039
20382040
let postdata = {
@@ -2048,7 +2050,7 @@ export default defineComponent({
20482050
containerport: this.containerPort,
20492051
repository: this.docker.image,
20502052
tag: this.docker.tag,
2051-
command: this.docker.command.split(' '),
2053+
command: command,
20522054
fetch: this.buildpack?.fetch,
20532055
build: this.buildpack?.build,
20542056
run: this.buildpack?.run,

0 commit comments

Comments
 (0)