Merge pull request #377 from YunoHost/fix-argument-less-manifest

fix argument-less manifest
This commit is contained in:
Alexandre Aubin 2021-07-03 23:28:04 +02:00 committed by GitHub
commit 8df88919e0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -114,7 +114,7 @@ export default {
}
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(() => {
this.$router.push({ name: 'app-list' })