diff --git a/public/react/src/modules/courses/members/teacherList.js b/public/react/src/modules/courses/members/teacherList.js index bb344de38..02fab16a9 100644 --- a/public/react/src/modules/courses/members/teacherList.js +++ b/public/react/src/modules/courses/members/teacherList.js @@ -227,6 +227,7 @@ class studentsList extends Component{ } componentWillUnmount() { off('addTeacherSuccess', this.addTeacherSuccessListener) + const isAdmin = this.props.isAdmin() isAdmin && off('updateNavSuccess', this.updateNavSuccess) } updateNavSuccess = () => {