Removing console.log throws an error

I have an app which is built using reactjs and react-mdl. There is a tab show info, episodes, and cast. When episode is clicked John, Jane in header should be changed to other text and so 55 episodes plus other content that is beneath the tab. The code that i coded works what i want but i think its not the proper way and there is a bug. I know its my fault but dont know how could i solve it.