Fix: Allow data for JSONTree to be any

This commit is contained in:
Nathan Bierema 2020-05-04 11:30:38 -04:00
parent 2e5a9d0e95
commit 94dae9c91b

View File

@ -81,7 +81,7 @@ function getStateFromProps(props) {
export default class JSONTree extends React.Component {
static propTypes = {
data: PropTypes.oneOfType([PropTypes.array, PropTypes.object]).isRequired,
data: PropTypes.any.isRequired,
hideRoot: PropTypes.bool,
theme: PropTypes.oneOfType([PropTypes.object, PropTypes.string]),
invertTheme: PropTypes.bool,