edugator-cise / edugator-staff-frontend

React, TypeScript, MUI front end for Edugator
https://edugator.app
GNU General Public License v3.0
8 stars 4 forks source link

Code text doesn't show up after publishing lesson #228

Open vidatonkova opened 1 year ago

vidatonkova commented 1 year ago

Describe the bug When creating lesson content, an admin can add code text. It shows up when creating the lesson but disappears on the student side once it is published. On the admin side, the code text is still present.

To Reproduce Steps to reproduce the behavior:

  1. Login as an admin
  2. Create a Lesson or Edit Problem 1 - Top-Down Approach under the DP section
  3. Add in some code with the code text feature
  4. Publish the lesson
  5. Try to access the lesson from the Student Side

Expected behavior The code text will get added and saved on the Admin side after the lesson is published. However, the code text will not be visible to the student.

Screenshots

image image

Desktop (please complete the following information):

Smartphone (please complete the following information):

Additional context Add any other context about the problem here.