CleoMenezesJr / escambo

Escambo is an HTTP-based APIs test application for GNOME
https://flathub.org/apps/io.github.cleomenezesjr.Escambo
GNU General Public License v3.0
142 stars 10 forks source link

Modifying form data doesnt work #72

Open aadi-1024 opened 1 year ago

aadi-1024 commented 1 year ago

Basically, trying to edit any entry in the Body(Form Data) does not work unless you remove and add the entry again on version 0.1.2. I'd like to try and help out with this issue, will update here if I'm able to find a fix :)

aadi-1024 commented 1 year ago

I explored the codebase a little bit and seems like the issue was due to the return statement on line 470 in window.py.

The if statement checks for duplicate entries and returns without editing the body, but this causes issues when you're trying to edit already existing entries.

image