Remove transition that was causing an error with React when navigating from non-course page to course page