From 057a33e8bfbe766fbe617fcb503f95ed689260f1 Mon Sep 17 00:00:00 2001 From: axolotle Date: Fri, 24 Mar 2023 13:49:50 +0100 Subject: [PATCH] AppInfo: send config panel `args` only if not empty --- app/src/views/app/AppInfo.vue | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/src/views/app/AppInfo.vue b/app/src/views/app/AppInfo.vue index 23c9618a..66a5d66c 100644 --- a/app/src/views/app/AppInfo.vue +++ b/app/src/views/app/AppInfo.vue @@ -265,6 +265,7 @@ import api, { objectToParams } from '@/api' import { readableDate } from '@/helpers/filters/date' import { humanPermissionName } from '@/helpers/filters/human' import { required } from '@/helpers/validators' +import { isEmptyValue } from '@/helpers/commons' import { formatFormData, formatI18nField, @@ -438,7 +439,7 @@ export default { action ? `apps/${this.id}/actions/${action}` : `apps/${this.id}/config/${id}`, - { args: objectToParams(args) }, + isEmptyValue(args) ? {} : { args: objectToParams(args) }, { key: `apps.${action ? 'action' : 'update'}_config`, id, name: this.id } ).then(() => { this.$refs.view.fetchQueries({ triggerLoading: true })