react-json-tree
react-json-tree copied to clipboard
omitted valueGetterFor Number nodetype (numeric values )
Node items with numeric value are not rendered as the valueGetter function is not defined. This PR fix this issue by assigning a valueGetter function to nodetype of value "Number"
Can you provide an example of failing data?
The compomemt will fail at rendering "timeout" : 5000
[{
"type": "error",
"message": "Timeout: Unable to communicate with the parent App",
"params": {
"externalCommand": "userPreferences",
"timeout": 5000
}
}, {
"type": "error",
"message": "Unable to initialize WPF Handler",
"params": {}
}]
Just tried it in example - seems ok to me:

Are you using the latest version? Maybe there are some render overrides in parent component that lead to it?
This is a weird situation I'm using react-json-tree 0.10.5 This is the message I'm getting :

My guess was that the valueGetter was not defined for node of type number.
Ref: react-json-tree/src/JSONNode.js : 53