Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Left sidebar navigation breaks rendering of course #1437

Open
KristinAoki opened this issue Aug 14, 2024 · 1 comment
Open

Left sidebar navigation breaks rendering of course #1437

KristinAoki opened this issue Aug 14, 2024 · 1 comment
Labels
bug Report of or fix for something that isn't working as intended

Comments

@KristinAoki
Copy link
Member

KristinAoki commented Aug 14, 2024

On the edX production site, the enabling of the left sidebar navigation prevents the page from rendering. When looking at the Network tab in Dev tools, the navigation API, /api/course_home/v1/navigation/undefined returns 404 because the course id is undefined. It should be noted that this does not occur on all the edX environments.

Screen recording of the behavior:

Screen.Recording.2024-08-14.at.11.48.20.AM.mov

Screenshot of console errors
Screenshot 2024-08-14 at 1 29 45 PM

The error points to the useEffect in src/courseware/course/sidebar/sidebars/course-outline/hooks.jsx

Reproduction steps

  1. Enable courseware.enable_navigation_sidebar waffle flag
  2. Open a course
  3. See the spinner for loading the course content
  4. Shown unexpected error occurred message
@KristinAoki KristinAoki added the bug Report of or fix for something that isn't working as intended label Aug 14, 2024
@qasimgulzar
Copy link

@KristinAoki could you please add steps to reproduce.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Report of or fix for something that isn't working as intended
Projects
None yet
Development

No branches or pull requests

2 participants