Skip to content
Snippets Groups Projects
Commit 2d8945d5 authored by permcu's avatar permcu
Browse files

Use id in edit-item of substitution frontend

parent 1391b48c
No related branches found
No related tags found
1 merge request!310Resolve "Implement Vue substitution frontend"
......@@ -252,9 +252,9 @@ export default {
initPatchData() {
return {
id: this.selectedEvent.meta.id,
subject: this.selectedEvent.meta.subject,
teachers: this.selectedEvent.meta.teachers,
rooms: this.selectedEvent.meta.rooms,
subject: this.selectedEvent.meta.subject?.id,
teachers: this.selectedEvent.meta.teachers.map((teacher) => teacher.id),
rooms: this.selectedEvent.meta.rooms.map((room) => room.id),
cancelled: this.selectedEvent.meta.cancelled,
comment: this.selectedEvent.meta.comment,
};
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment