We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 5d36112 + 3a014f2 commit cb0b46bCopy full SHA for cb0b46b
kolibri/plugins/facility/assets/src/modules/classEditManagement/index.js
@@ -41,6 +41,13 @@ export default {
41
},
42
DELETE_CLASS_COACH(state, id) {
43
state.classCoaches = state.classCoaches.filter(user => user.id !== id);
44
+ // Note that we only do this here because we use `currentClass.coaches` when relevant,
45
+ // but there is no equivalent `currentClass.learners` - instead code uses `classLearners`
46
+ // where relevant. This is a bit of a stop-gap before this is converted away from Vuex
47
+ // in the near future.
48
+ if (state.currentClass) {
49
+ state.currentClass.coaches = state.currentClass.coaches.filter(u => u.id !== id);
50
+ }
51
52
53
actions: {
0 commit comments