const isAdmin = this.props.isAdmin()

dev_forum
hjm 6 years ago
parent 07b9197e15
commit e77bc70aea

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

Loading…
Cancel
Save