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

Fix oldId handling

parent 0034ff71
No related branches found
No related tags found
2 merge requests!352Draft: Resolve "Add dialog with each lesson's students",!350Resolve "Add simple course book list"
Pipeline #178506 failed
......@@ -119,11 +119,11 @@ export default {
(o) => o[itemId] === this.documentation.id,
);
// merged with the incoming partial documentation
// set ID of documentation currently being edited as oldID so that key in coursebook doesn't change
// if creation of proper documentation from dummy one, set ID of documentation currently being edited as oldID so that key in coursebook doesn't change
cached[index] = {
...this.documentation,
...object,
oldId: this.documentation.id,
oldId: this.documentation.id !== object.id ? this.documentation.id : this.documentation.oldId,
};
}
return cached;
......
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