From ad029247e7f5d8cccab34f242a63eade1f12c851 Mon Sep 17 00:00:00 2001 From: Alexander Friedland Date: Fri, 9 Sep 2022 13:03:38 +0200 Subject: [PATCH] Update webapp/components/Group/GroupForm.vue MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Wolfgang Huß --- webapp/components/Group/GroupForm.vue | 23 ++++++++++------------- 1 file changed, 10 insertions(+), 13 deletions(-) diff --git a/webapp/components/Group/GroupForm.vue b/webapp/components/Group/GroupForm.vue index 1b2d2037f..cd04f3dd4 100644 --- a/webapp/components/Group/GroupForm.vue +++ b/webapp/components/Group/GroupForm.vue @@ -123,23 +123,20 @@ export default { methods: { submit() { const { name, about, description, groupType, actionRadius, categoryIds } = this.formData + const variables = { + name, + about, + description, + groupType, + actionRadius, + categoryIds, + } this.update ? this.$emit('updateGroup', { - name, - about, - description, - actionRadius, - categoryIds, + ...variables, id: this.group.id, }) - : this.$emit('createGroup', { - name, - about, - description, - groupType, - actionRadius, - categoryIds, - }) + : this.$emit('createGroup', variables) }, reset() { alert('reset')