Skip to content
Snippets Groups Projects
Commit 55a268a7 authored by magicfelix's avatar magicfelix
Browse files

Fix updating subjects

parent df076f2c
No related branches found
No related tags found
1 merge request!24Resolve "Adapt to refactored CRUD lists"
Pipeline #170961 failed
......@@ -212,7 +212,7 @@ export default {
if (header.value === "parent") {
dto["parent"] = item.parent?.id;
} else if (header.value === "teachers") {
dto["teachers"] = item.teachers.map((teacher) => teacher.id);
dto["teachers"] = item.teachers?.map((teacher) => teacher.id);
} else {
dto[header.value] = item[header.value];
}
......
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