peiyuans-pals / toohakai

Home Page:https://www.toohakai.fun

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Database for answers does not get updated after attempting to update question bank questions

Zenteh-NTU opened this issue · comments

commented

Describe the bug

Question Banks fails to be deleted after pressing "Delete Question Bank" button

To Reproduce

  1. Go to /dashboard/teacher/question-banks
  2. Select the first existing question bank
  3. Website should be directed to /dashboard/teacher/question-banks/1
  4. Select "Edit" button
  5. Make some edits to the question answers.
  6. Nothing happens to the question answers shown in the table.
  7. Postgres Database shows no change in the entries that was supposed to change too

This bug seems to occur if ID for answer is > 4.

Desktop

  • OS: Windows 10 64 bit
  • Browser: Chrome Version 116.0.5845.189