Skip to content

Conversation

@lucas-koehler
Copy link
Contributor

Replace isEmpty check with check against undefined because isEmpty always returns true for boolean values, 0, empty strings and objects without props. This lead to errors when switching from any of these to an array and trying to add elements there.

Also adds unit tests for this.

fixes #2506

Replace isEmpty check with check against undefined because isEmpty always returns true
for boolean values, 0, empty strings and objects without props.
This lead to errors when switching from any of these to an array and trying to add
elements there.

Also adds unit tests for this.

fixes #2506
@netlify
Copy link

netlify bot commented Dec 18, 2025

Deploy Preview for jsonforms-examples ready!

Name Link
🔨 Latest commit 5072070
🔍 Latest deploy log https://app.netlify.com/projects/jsonforms-examples/deploys/6943ec77c323b50008b5c408
😎 Deploy Preview https://deploy-preview-2520--jsonforms-examples.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 project configuration.

@lucas-koehler lucas-koehler requested a review from sdirix December 18, 2025 11:58
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.

Vue Vanilla OneOf renderer fails to properly switch between boolean and array values

2 participants