Merge pull request #5583 from Ocelot-Social-Community/update-group-avatar-on-upload

fix: 🍰 Update Group Avatar After Upload
This commit is contained in:
Moriz Wahl 2022-10-27 14:51:33 +02:00 committed by GitHub
commit 831cb20952
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 2 deletions

View File

@ -8,7 +8,8 @@ export default {
return resolve(root, args, context, info)
},
UpdateGroup: async (resolve, root, args, context, info) => {
args.descriptionExcerpt = trunc(args.description, DESCRIPTION_EXCERPT_HTML_LENGTH).html
if (args.description)
args.descriptionExcerpt = trunc(args.description, DESCRIPTION_EXCERPT_HTML_LENGTH).html
return resolve(root, args, context, info)
},
CreatePost: async (resolve, root, args, context, info) => {

View File

@ -93,7 +93,9 @@ export const updateGroupMutation = () => {
name
icon
}
# avatar # test this as result
avatar {
url
}
locationName
myRole
}