import is working. IMPORTANT ToDo: avoid nultiple imports

This commit is contained in:
Moriz Wahl 2020-10-14 00:25:43 +02:00
parent 7d6800c113
commit 8479e27821

View File

@ -76,7 +76,8 @@ export default {
key: this.messageCounter++,
})
posts.forEach(async (post) => {
const { title, content, categoryIds, language } = post
const { title, content, language } = post
const categoryIds = post.categories.map((cat) => cat.id)
this.$apollo
.mutate({
mutation: PostMutations().CreatePost,