Skip to content
Snippets Groups Projects
Commit 20e00758 authored by Hangzhi Yu's avatar Hangzhi Yu
Browse files

Fix values of amended lessons not being shown in form

parent 2acec8b2
No related branches found
No related tags found
1 merge request!310Resolve "Implement Vue substitution frontend"
Pipeline #146172 failed
......@@ -259,9 +259,9 @@ export default {
initPatchData() {
return {
id: this.selectedEvent.meta.id,
subject: this.selectedEvent.meta.subject?.id,
teachers: this.selectedEvent.meta.teachers.map((teacher) => teacher.id),
rooms: this.selectedEvent.meta.rooms.map((room) => room.id),
subject: this.selectedEvent.meta.subject?.id.toString(),
teachers: this.selectedEvent.meta.teachers.map((teacher) => teacher.id.toString()),
rooms: this.selectedEvent.meta.rooms.map((room) => room.id.toString()),
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