Убран лишний else
This commit is contained in:
@@ -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 = {};
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user