Skip to content

Commit 3a014f2

Browse files
committed
comment explaining the change
1 parent 8b7deae commit 3a014f2

File tree

1 file changed

+4
-0
lines changed
  • kolibri/plugins/facility/assets/src/modules/classEditManagement

1 file changed

+4
-0
lines changed

kolibri/plugins/facility/assets/src/modules/classEditManagement/index.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,10 @@ export default {
4141
},
4242
DELETE_CLASS_COACH(state, id) {
4343
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.
4448
if (state.currentClass) {
4549
state.currentClass.coaches = state.currentClass.coaches.filter(u => u.id !== id);
4650
}

0 commit comments

Comments
 (0)