diff --git a/src/components/Collapsable.js b/src/components/Collapsable.js index 1c74137..dbec529 100644 --- a/src/components/Collapsable.js +++ b/src/components/Collapsable.js @@ -8,11 +8,15 @@ export default class Collapsable extends React.Component { object: React.PropTypes.object.isRequired, topLevel: React.PropTypes.bool, opened: React.PropTypes.bool, - requestOpen: React.PropTypes.func.isRequired, + requestOpen: React.PropTypes.func, fragments: React.PropTypes.array.isRequired, closable: React.PropTypes.bool.isRequired, }; + static defaultProps = { + requestOpen: () => {}, + }; + constructor(props) { super(props); this.state = { @@ -43,7 +47,7 @@ export default class Collapsable extends React.Component { return (
requestOpen(object.name)}> +
{response.status}{response.statusText && (': ' + response.statusText)}
+