From fcda48513a14c2c0ed26c3d04722132a1ad129f8 Mon Sep 17 00:00:00 2001 From: Kristin Aoki Date: Wed, 21 Jul 2021 09:22:16 -0400 Subject: [PATCH] Remove commented out code --- src/courseware/CoursewareContainer.jsx | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/courseware/CoursewareContainer.jsx b/src/courseware/CoursewareContainer.jsx index b03b4bf5..b64c3ed0 100644 --- a/src/courseware/CoursewareContainer.jsx +++ b/src/courseware/CoursewareContainer.jsx @@ -108,16 +108,12 @@ class CoursewareContainer extends Component { match: { params: { courseId: routeCourseId, - // sequenceId: routeSequenceId, sequenceId: routeSequenceHash, }, }, } = this.props; - // const routeSequenceId = decodeURIComponent(routeSequenceHash.replace(/\+/g, ' ')); - // console.log(routeSequenceId); // Load data whenever the course or sequence ID changes. this.checkFetchCourse(routeCourseId); - // this.checkFetchSequence(routeSequenceId); this.checkFetchSequence(routeSequenceHash); } @@ -136,14 +132,14 @@ class CoursewareContainer extends Component { match: { params: { courseId: routeCourseId, - sequenceId: routeSequenceId, + sequenceId: routeSequenceHash, unitId: routeUnitId, }, }, } = this.props; // Load data whenever the course or sequence ID changes. this.checkFetchCourse(routeCourseId); - this.checkFetchSequence(routeSequenceId); + this.checkFetchSequence(routeSequenceHash); // All courseware URLs should normalize to the format /course/:courseId/:sequenceId/:unitId // via the series of redirection rules below.