diff --git a/webapp/components/ContributionForm/ContributionForm.vue b/webapp/components/ContributionForm/ContributionForm.vue index ba982e6ef..0428b2e23 100644 --- a/webapp/components/ContributionForm/ContributionForm.vue +++ b/webapp/components/ContributionForm/ContributionForm.vue @@ -168,14 +168,6 @@ export default { } } this.loading = true - // Wolle: console.log('variables: ', { - // title, - // content, - // categoryIds, - // id: this.contribution.id || null, - // image, - // groupId: this.groupId, - // }) this.$apollo .mutate({ mutation: this.contribution.id ? PostMutations().UpdatePost : PostMutations().CreatePost, diff --git a/webapp/graphql/PostMutations.js b/webapp/graphql/PostMutations.js index 23a537e56..8880a93b0 100644 --- a/webapp/graphql/PostMutations.js +++ b/webapp/graphql/PostMutations.js @@ -35,14 +35,14 @@ export default () => { $title: String! $content: String! $image: ImageInput - $categoryIds: [ID] # Wolle: $groupId: ID + $categoryIds: [ID] ) { UpdatePost( id: $id title: $title content: $content image: $image - categoryIds: $categoryIds # Wolle: groupId: $groupId + categoryIds: $categoryIds ) { id title diff --git a/webapp/pages/post/create.vue b/webapp/pages/post/create.vue index ac2573ac1..3dbf3ae8a 100644 --- a/webapp/pages/post/create.vue +++ b/webapp/pages/post/create.vue @@ -26,8 +26,6 @@ export default { }, data() { const { groupId = null } = this.$route.query - // Wolle: console.log('groupId: ', groupId) - // Wolle: check if the user can post in this group. if not … ? return { groupId, }