diff --git a/webapp/components/Group/GroupForm.vue b/webapp/components/Group/GroupForm.vue
index d79349fda..8a9638b1a 100644
--- a/webapp/components/Group/GroupForm.vue
+++ b/webapp/components/Group/GroupForm.vue
@@ -60,7 +60,7 @@
- zurück
+ zurück
diff --git a/webapp/graphql/groups.js b/webapp/graphql/groups.js
index 5a1a2622c..5ee5869ce 100644
--- a/webapp/graphql/groups.js
+++ b/webapp/graphql/groups.js
@@ -143,7 +143,7 @@ export const changeGroupMemberRoleMutation = () => {
// ------ queries
export const groupQuery = (i18n) => {
- const lang = i18n.locale().toUpperCase()
+ const lang = i18n ? i18n.locale().toUpperCase() : 'EN'
return gql`
query ($isMember: Boolean, $id: ID, $slug: String) {
Group(isMember: $isMember, id: $id, slug: $slug) {
diff --git a/webapp/pages/group/create.vue b/webapp/pages/group/create.vue
index 1c95fffbc..b7bde3b3d 100644
--- a/webapp/pages/group/create.vue
+++ b/webapp/pages/group/create.vue
@@ -33,7 +33,7 @@ export default {
const variables = { name, about, description, groupType, actionRadius, categoryIds }
try {
await this.$apollo.mutate({
- mutation: createGroupMutation,
+ mutation: createGroupMutation(),
variables,
})
this.$toast.success(this.$t('group.group-created'))
diff --git a/webapp/pages/group/edit/_id.vue b/webapp/pages/group/edit/_id.vue
index 325788302..3bea8e6c3 100644
--- a/webapp/pages/group/edit/_id.vue
+++ b/webapp/pages/group/edit/_id.vue
@@ -12,7 +12,7 @@
- zurück
+ zurück
@@ -51,7 +51,7 @@ export default {
Group: [group],
},
} = await client.query({
- query: groupQuery(this.$i18n),
+ query: groupQuery(), // "this.$i18n" is undefined here, so we use default lang
variables: { id },
})
if (group.myRole !== 'owner') {