This repository has been archived by the owner on May 14, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 115
Error objects cannot be expanded + Fix for #20 #22
Comments
Thanks! Closed by #23 |
PR #23 only fixes issue #20 by adding |
@skleeschulte sorry I read it wrong, reopened this issue |
Should be fixed by dadf3d3 |
Looks like the issue is still there (in |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Error objects in the state tree cannot be expanded. Thats because iterating with for...in and hasOwnProperty doesn't work here. However this should easily be fixed by adding this before line 30 in JSONObjectNode.js:
In addition, to solve Objects without prototype chain are broken #20 , line 32 in JSONObjectNode.js could be changed to:
(IMHO thats better than PR Fixes #20, expanding of objects without prototype #21.)
I would create a pull request, but I cannot test this, because I cannot build the package. (I cloned it from github, but get lot's of errors on
npm install
,npm build
andnpm run lint
. Even after fixingnpm install
andnpm build
(by removing all the carets from the dependency versions in package.json and installing [email protected]), withnpm build
the output inlib
looks different from what I get fromnpm install react-json-tree
.)But I'm sure someone can do it. :)
The text was updated successfully, but these errors were encountered: