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: request body does not reset, fix #730 #749

Merged
merged 2 commits into from
Jan 8, 2024

Conversation

hanspagel
Copy link
Member

Problem
Currently, the request body doesn’t reset when you navigate to a request without a request body (#730).

Explanation
This happens because I watched for content changes, but ignored null/undefined/''. I can’t remember why I did that, but I think it was just that the setCodeMirrorContent helper didn’t support undefined or null.

Solution
With this PR the setCodeMirrorContent helper deals with those values and we don’t ignore them anymore.

Copy link

netlify bot commented Jan 8, 2024

Deploy Preview for scalar-deploy-preview ready!

Name Link
🔨 Latest commit bdc440e
🔍 Latest deploy log https://app.netlify.com/sites/scalar-deploy-preview/deploys/659c7681aeb9050008d0465e
😎 Deploy Preview https://deploy-preview-749--scalar-deploy-preview.netlify.app/
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Copy link

changeset-bot bot commented Jan 8, 2024

🦋 Changeset detected

Latest commit: bdc440e

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 7 packages
Name Type
@scalar/use-codemirror Patch
@scalar/api-client Patch
@scalar/api-reference Patch
@scalar/swagger-editor Patch
@scalar/express-api-reference Patch
@scalar/hono-api-reference Patch
@scalar/nestjs-api-reference Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@marclave marclave self-requested a review January 8, 2024 22:29
Copy link
Member

@marclave marclave left a comment

Choose a reason for hiding this comment

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

awesome work @hanspagel , I just tested it out and its all fixed ✨

@hanspagel hanspagel merged commit c171c9d into main Jan 8, 2024
7 checks passed
@hanspagel hanspagel deleted the fix/request-body-does-not-reset branch January 8, 2024 22:30
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.

None yet

2 participants