fix argument-less manifest

This commit is contained in:
Kay0u 2021-07-03 23:17:03 +02:00
parent 2fef301055
commit 41f1858ff7
No known key found for this signature in database
GPG key ID: AE1DCADB6415A156

View file

@ -114,7 +114,7 @@ export default {
} }
const { data: args, label } = formatFormData(this.form, { extract: ['label'] }) const { data: args, label } = formatFormData(this.form, { extract: ['label'] })
const data = { app: this.id, label, args: objectToParams(args) } const data = { app: this.id, label, args: Object.entries(args).length ? objectToParams(args) : undefined }
api.post('apps', data, { key: 'apps.install', name: this.name }).then(() => { api.post('apps', data, { key: 'apps.install', name: this.name }).then(() => {
this.$router.push({ name: 'app-list' }) this.$router.push({ name: 'app-list' })