Fix event creation
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
parent
acf51a3130
commit
69339700cd
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user