Some fixes, added Events in edit
This commit is contained in:
@@ -193,7 +193,7 @@ export default {
|
||||
event_place_id: this.selectedEventPlace ? this.selectedEventPlace.id : null,
|
||||
contactPersonIds: this.selectedContactPersons.map(person => person.id)
|
||||
};
|
||||
payload.dayOfWeek = payload.dayOfWeek.value;
|
||||
payload.dayOfWeek = payload.dayOfWeek ? payload.dayOfWeek.value ?? -1 : -1;
|
||||
let response;
|
||||
if (this.eventData.id) {
|
||||
response = await axios.put(`/events/${this.eventData.id}`, payload);
|
||||
|
||||
Reference in New Issue
Block a user