fix(react-json-tree): remove isRequired from data prop type (#685)

* remove is required check

* revert formatting changes
This commit is contained in:
Chris Woodley 2020-12-03 16:36:49 -05:00 committed by GitHub
parent c980eadec7
commit d76d6c678d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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