TheOdinProject / theodinproject

Main Website for The Odin Project
http://www.theodinproject.com
MIT License
3.56k stars 2.06k forks source link

Fix: Avoid null error in toc controller #4506

Closed JoshDevHub closed 2 months ago

JoshDevHub commented 2 months ago

Because

Currently there's a null error that can happen in the toc stimulus controller if a lesson starts with a comment.

This PR

Issue

Closes #4434

Additional Information

Pull Request Requirements

JoshDevHub commented 2 months ago

To QA in the review app:

  1. Visit a lesson that has a linter comment. An example would be lessons/foundations-installing-node-js
  2. Open the console and verify no null error.