Fix crash when group undefined

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
Thomas Citharel
2021-06-16 14:47:36 +02:00
parent 6c0e503319
commit b884d88ac3
2 changed files with 2 additions and 2 deletions

View File

@@ -382,7 +382,7 @@ export default class EditPost extends mixins(GroupMixin) {
}
get actualGroup(): IActor {
if (!this.group.id) {
if (!this.group?.id) {
return this.post.attributedTo as IActor;
}
return this.group;