Убран лишний else

This commit is contained in:
Daria Golova
2022-12-15 16:35:07 +03:00
parent 5455b9ee24
commit 217e971f50

View File

@@ -351,16 +351,15 @@ export default {
}, },
async sendEventData() { async sendEventData() {
if (!this.checkTime()) return; if (!this.checkTime()) return;
else this.eventData = {
this.eventData = { start: this.mergeDate(this.eventDate, this.startTime),
start: this.mergeDate(this.eventDate, this.startTime), end: this.mergeDate(this.eventDate, this.endTime),
end: this.mergeDate(this.eventDate, this.endTime), kind: this.kind.label,
kind: this.kind.label, employees: [
employees: [ this.findPerson(this.ownersData, this.employees, "employee"),
this.findPerson(this.ownersData, this.employees, "employee"), ],
], members: [this.findPerson(this.membersData, this.members, "person")],
members: [this.findPerson(this.membersData, this.members, "person")], };
};
await this.postCreateEvent(this.eventData); await this.postCreateEvent(this.eventData);
this.eventData = {}; this.eventData = {};
}, },