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

🪲 Don't use contents when obtaining the contents of teacher adventures #6036

Merged
merged 2 commits into from
Dec 11, 2024

Conversation

jpelay
Copy link
Member

@jpelay jpelay commented Dec 10, 2024

Fixes the problem of the class overview page crashing when teacher adventures had HTML tags inside of them, by instead of calling pre.contents[0] using pre.text. This is mostly a fix for legacy adventures, since currently it is impossible to add an HTML tag inside a code snippet when creating a teacher adventure.

Fixes #5314

How to test

Follow these steps to verify this PR works as intended:

  • Check that the class overview page works normally, even when students have programs from teacher adventures.

Copy link
Contributor

mergify bot commented Dec 11, 2024

Thank you for contributing! Your pull request is now going on the merge train (choo choo! Do not click update from main anymore, and be sure to allow changes to be pushed to your fork).

@mergify mergify bot merged commit efe00f5 into main Dec 11, 2024
11 checks passed
@mergify mergify bot deleted the fix-5314 branch December 11, 2024 10:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

🪲 program overview page breaks when program is too long
2 participants