这是indexloc提供的服务,不要输入任何密码
Skip to content

Conversation

@homanp
Copy link
Collaborator

@homanp homanp commented Dec 5, 2023

Summary

Fixes an issue with the user being able to save a malformed JSON when setting up a custom function in UI.

Checklist

  • My code follows the code style of this project and passes make format.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • My change has adequate unit test coverage.

@homanp homanp added the bug Something isn't working label Dec 5, 2023
@homanp homanp self-assigned this Dec 5, 2023
@vercel
Copy link

vercel bot commented Dec 5, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
superagent-ui ✅ Ready (Inspect) Visit Preview 💬 Add feedback Dec 5, 2023 3:06pm

@homanp homanp changed the title Guard agains malformed json input for custom functions Guard against malformed json input for custom functions Dec 5, 2023
@shuriken-bytes
Copy link
Collaborator

The changes in this pull request look good. It adds error handling for parsing JSON in the EditTool component. This is a helpful addition to ensure that invalid JSON values are handled properly. Great job, @homanp! 👍🏼

@homanp homanp merged commit 7982cec into main Dec 5, 2023
ethdegen pushed a commit to ethdegen/superagent that referenced this pull request Dec 13, 2023
…i#551)

* Guard agains malformed json input for custom functions

* Remove console.log
ethdegen pushed a commit to ethdegen/superagent that referenced this pull request Dec 13, 2023
…i#551)

* Guard agains malformed json input for custom functions

* Remove console.log
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants