fix: infinite loop when selecting a team in instructor view Closes #736 See merge request inject/frontend!636