Skip to content

Conversation

@superfaz
Copy link
Contributor

Hi @mac-s-g,
This pull request covers the issue #252 where the 'length' property is misinterpreted as the length of an array.
Best,

@superfaz
Copy link
Contributor Author

Hi @mac-s-g
Any feedback on this pull request?

@mac-s-g
Copy link
Owner

mac-s-g commented Mar 8, 2021

@superfaz thanks for posting! reviewing now.

@mac-s-g
Copy link
Owner

mac-s-g commented Mar 8, 2021

nice fix! thanks for including a test.
I'm gonna merge this and include the changes with the 1.21.2 release.

I'll comment when your changes are published to npm.

@mac-s-g mac-s-g merged commit 239447e into mac-s-g:master Mar 8, 2021
@mac-s-g
Copy link
Owner

mac-s-g commented Mar 8, 2021

published to npm: [email protected].

thanks again for the contribution @superfaz !

bespokebob added a commit to bespokebob/react-json-view that referenced this pull request Mar 8, 2021
If an object has more keys than `groupArraysAfterLength`, then it will be rendered as an Array due to the changes in mac-s-g#336

Fix this logic so only arrays are rendered as arrays.

Fixes mac-s-g#340
bespokebob added a commit to bespokebob/react-json-view that referenced this pull request Mar 8, 2021
If an object has more keys than `groupArraysAfterLength`, then it will be rendered as an Array due to the changes in mac-s-g#336

Fix this logic so only arrays are rendered as arrays.

Fixes mac-s-g#340
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.

2 participants