oppia / oppia

A free, online learning platform to make quality education accessible for all.
https://www.oppia.org
Apache License 2.0
5.63k stars 3.78k forks source link

[BUG]: Deleting a topic that is in an existing classroom causes console errors. #20212

Open jnvtnguyen opened 2 weeks ago

jnvtnguyen commented 2 weeks ago

Describe the bug

After creating both a topic and a classroom and linking that topic to the classroom, deleting the topic causes console errors when visiting the classroom admin.

URL of the page where the issue is observed.

/classroom-admin

Steps To Reproduce

  1. Go to the topics and skills dashboard page and create a topic.
  2. Go to the classroom admin page and create a classroom and link that topic to it.
  3. Delete the topic in the topics and skills dashboard page.
  4. Go back to the classroom admin page and open the classroom that had the topic linked.

Expected Behavior

I expect no console errors to be present.

Screenshots/Videos

Screenshot 2024-04-24 153248

What device are you using?

Desktop

Operating System

Windows

What browsers are you seeing the problem on?

Chrome

Browser version

No response

Additional context

No response

Tips for developers

Before addressing the bug, please identify which PR caused the issue (you can follow the steps here). If you identify the PR, comment on the issue with a link to it. If not, mention the commit hash of the oldest commit you saw the bug on (and the month and year it was made in).

Then, please leave a comment with details of the approach that you plan to take to fix the issue (see example).

Note: If this is your first Oppia issue, please make sure to follow our guidelines for choosing an issue and setting things up. You will also need to show a demo of the fix working correctly on your local machine. Thanks!