diff --git a/js/src/views/Event/Edit.vue b/js/src/views/Event/Edit.vue index f67ba5dc..3d098bfb 100644 --- a/js/src/views/Event/Edit.vue +++ b/js/src/views/Event/Edit.vue @@ -859,9 +859,12 @@ export default class EditEvent extends Vue { */ private async buildVariables() { let res = this.event.toEditJSON(); - if (this.event.organizerActor) { + const organizerActor = this.event.organizerActor?.id + ? this.event.organizerActor + : this.organizerActor; + if (organizerActor) { res = Object.assign(res, { - organizerActorId: this.event.organizerActor.id, + organizerActorId: organizerActor.id, }); } const attributedToId = this.event.attributedTo?.id