We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
If you try to show a sparse array with 51 or more elements, JSONTree crashes with Cannot read properties of undefined (reading 'to') from isRange()
Cannot read properties of undefined (reading 'to')
isRange()
This happens any time a sparse array has more than collectionLimit items, which is 50 by default.
collectionLimit
let sparseArrayBroken: string[] = []; sparseArrayBroken[50] = "this causes a crash"; <JSONTree data={sparseArrayBroken} />
Reproduction here: https://codesandbox.io/p/sandbox/ns6q5j
The text was updated successfully, but these errors were encountered:
Potential PR: #1828
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
If you try to show a sparse array with 51 or more elements, JSONTree crashes with
Cannot read properties of undefined (reading 'to')
fromisRange()
This happens any time a sparse array has more than
collectionLimit
items, which is 50 by default.Reproduction here: https://codesandbox.io/p/sandbox/ns6q5j
Screenshot.001018.mp4
The text was updated successfully, but these errors were encountered: