CATcher-org / CATcher

CATcher is a software application used for peer-testing of software projects.
https://catcher-org.github.io/CATcher/
MIT License
71 stars 66 forks source link

Cannot update an issue title #1257

Closed ckcherry23 closed 3 months ago

ckcherry23 commented 3 months ago

Describe the bug After creating a bug, if I try to update the title, it just shows an error.

To Reproduce Steps to reproduce the behavior:

  1. Create a bug report.
  2. Click on the 'Edit' button beside the title
  3. Update the title text and click 'Save'.
  4. Title does not get updated. Instead, it returns an error message:
    Cannot read properties of undefined (reading 'data')

Expected behavior The title gets updated based on newly entered title.

Screenshots Error message shown in the bottom toast:

Screenshot 2024-03-13 at 9 55 42 PM

Desktop (please complete the following information):

Additional context Nil

luminousleek commented 3 months ago

Hmm that's strange, I can't seem to replicate the bug on my end (see gif below). I've also tried adding a task list, code and image in the issue description (similar to your issue) but I still can edit the title. I'm not sure what's causing the error, could you try again and see whether it works?

title_editable

I'm using Chrome on macOS Ventura, but I highly doubt that the OS is the cause of the problem.

ckcherry23 commented 3 months ago

Hey @luminousleek, I tried it multiple times and editing the title and description never worked for me.

Then looked at the Network tab and realised it was a CORS issue because I had enabled the Allow CORS Chrome extension. Turned it off, and the updates work perfectly fine now.

luminousleek commented 3 months ago

Nice, I'll close the issue then.

ckcherry23 commented 3 months ago

It would be great if you mentioned this error case somewhere for troubleshooting, if possible.