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: empty object playground #4842

Merged
merged 1 commit into from
Sep 27, 2023
Merged

fix: empty object playground #4842

merged 1 commit into from
Sep 27, 2023

Conversation

kwasniew
Copy link
Contributor

@kwasniew kwasniew commented Sep 27, 2023

About the changes

Screenshot 2023-09-27 at 09 47 35

With empty object in code field and custom property selected JSON parser should not return any errors

Important files

Discussion points

@vercel
Copy link

vercel bot commented Sep 27, 2023

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

Name Status Preview Comments Updated (UTC)
unleash-monorepo-frontend ✅ Ready (Inspect) Visit Preview 💬 Add feedback Sep 27, 2023 7:50am
1 Ignored Deployment
Name Status Preview Comments Updated (UTC)
unleash-docs ⬜️ Ignored (Inspect) Sep 27, 2023 7:50am

@@ -63,7 +63,8 @@ export const PlaygroundCodeFieldset: VFC<IPlaygroundCodeFieldsetProps> = ({

setFieldExist(
contextValue[contextField] !== undefined ||
contextValue?.properties[contextField] !== undefined
contextValue?.properties?.[contextField] !==
Copy link
Contributor Author

Choose a reason for hiding this comment

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

properties may be empty

Copy link
Contributor

@thomasheartman thomasheartman left a comment

Choose a reason for hiding this comment

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

Nice! Was this all there was to it? Seems pretty simple 😄 I'm assuming this works whenever the properties property is missing? Super 👏🏼

@kwasniew kwasniew merged commit 40b9c46 into main Sep 27, 2023
12 of 17 checks passed
@kwasniew kwasniew deleted the fix-empty-object-playground branch September 27, 2023 08:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

None yet

2 participants