fix(react-select): allow data for JSONTree to be any (#513)

This commit is contained in:
Nathan Bierema 2020-07-28 22:23:46 -04:00 committed by GitHub
parent e0df33ac7b
commit de0a9c1180
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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,