MCPcopy Create free account
hub / github.com/codecombat/codecombat / toggleStudentSelectedId

Function toggleStudentSelectedId

ozaria/site/store/BaseSingleClass.js:139–145  ·  view source on GitHub ↗
({ dispatch, state }, { studentId })

Source from the content-addressed store, hash-verified

137 },
138
139 toggleStudentSelectedId ({ dispatch, state }, { studentId }) {
140 if (state.selectedStudents[studentId]) {
141 dispatch('removeStudentSelectedId', { studentId })
142 } else {
143 dispatch('addStudentSelectedId', { studentId })
144 }
145 },
146
147 clearSelectedStudents ({ commit }) {
148 commit('clearSelectedStudents')

Callers

nothing calls this directly

Calls 1

dispatchFunction · 0.85

Tested by

no test coverage detected