Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: resolve removing body parameters in requests (#2390) #2428

Merged
merged 2 commits into from
Jun 16, 2022

Conversation

vaugenwake
Copy link

@vaugenwake vaugenwake commented Jun 15, 2022

Closes #2390

Description

This PR resolves an issue with removing a parameters for request body parameters causing the browser to crash and hang. The solution to this is to add an id parameter to parameters so that each item is unique in the view and gets re-rendered on change.

[x] Fixed removing a body parameter from REST Request

Checks

  • My pull request adheres to the code style of this project
  • My code requires changes to the documentation
  • I have updated the documentation as required
  • All the tests have passed

Additional Information

@AndrewBastin
Copy link
Member

Thank you so much for the PR @vaugenwake! ❤️

I made a small change of instead of adding id to the FormDataKeyValue object, I changed working params to contain an object wrapping the keyvalue thingy. This removes some of the TypeScript issues.

Can you just verify once again from your end that this implementation works ? I think I did cover all the cases, just asking to be sure.

@vaugenwake
Copy link
Author

@AndrewBastin Yeah all looks good from my tests

@AndrewBastin
Copy link
Member

wokey. looks good at my end too. merging.

once again, thank you for the PR @vaugenwake! nice catch!

Copy link
Member

@AndrewBastin AndrewBastin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm 💯

@AndrewBastin AndrewBastin merged commit 82b6ad9 into hoppscotch:main Jun 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[bug]: Trying to delete parameter hangs the application or doesn't work
2 participants