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

Clear dummy substitution after deleting substitution with oldId

parent c30cfe63
No related branches found
No related tags found
1 merge request!329Introduce substitution to do list
Pipeline #194366 failed
......@@ -250,6 +250,13 @@ export default {
if (cached[index].oldId) {
cached[index].id = cached[index].oldId;
cached[index].oldId = null;
// Clear dummy substitution
cached[index].teachers = [];
cached[index].rooms = [];
cached[index].subject = null;
cached[index].comment = "";
cached[index].cancelled = false;
} else {
this.$emit("delete", cached[index].datetimeStart);
}
......
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