|
|
@ -227,6 +227,7 @@ class studentsList extends Component{
|
|
|
|
}
|
|
|
|
}
|
|
|
|
componentWillUnmount() {
|
|
|
|
componentWillUnmount() {
|
|
|
|
off('addTeacherSuccess', this.addTeacherSuccessListener)
|
|
|
|
off('addTeacherSuccess', this.addTeacherSuccessListener)
|
|
|
|
|
|
|
|
const isAdmin = this.props.isAdmin()
|
|
|
|
isAdmin && off('updateNavSuccess', this.updateNavSuccess)
|
|
|
|
isAdmin && off('updateNavSuccess', this.updateNavSuccess)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
updateNavSuccess = () => {
|
|
|
|
updateNavSuccess = () => {
|
|
|
|