Bug 1444594 - set correct prop-types in RequstListContent to clean up some warnings draft
authorglowka <glowka.tom@gmail.com>
Sat, 10 Mar 2018 16:33:14 +0100
changeset 765884 4bff5b3dbc39
parent 764916 cd7629692d65
push id102172
push userbmo:glowka.tom@gmail.com
push dateSat, 10 Mar 2018 15:51:12 +0000
bugs1444594
milestone60.0a1
Bug 1444594 - set correct prop-types in RequstListContent to clean up some warnings MozReview-Commit-ID: K4dOSEVSAWN
devtools/client/netmonitor/src/components/RequestListContent.js
--- a/devtools/client/netmonitor/src/components/RequestListContent.js
+++ b/devtools/client/netmonitor/src/components/RequestListContent.js
@@ -46,18 +46,18 @@ const MAX_SCROLL_HEIGHT = 2147483647;
  * Renders the actual contents of the request list.
  */
 class RequestListContent extends Component {
   static get propTypes() {
     return {
       connector: PropTypes.object.isRequired,
       columns: PropTypes.object.isRequired,
       networkDetailsOpen: PropTypes.bool.isRequired,
-      networkDetailsWidth: PropTypes.number.isRequired,
-      networkDetailsHeight: PropTypes.number.isRequired,
+      networkDetailsWidth: PropTypes.number,
+      networkDetailsHeight: PropTypes.number,
       cloneSelectedRequest: PropTypes.func.isRequired,
       displayedRequests: PropTypes.array.isRequired,
       firstRequestStartedMillis: PropTypes.number.isRequired,
       fromCache: PropTypes.bool,
       onCauseBadgeMouseDown: PropTypes.func.isRequired,
       onItemMouseDown: PropTypes.func.isRequired,
       onSecurityIconMouseDown: PropTypes.func.isRequired,
       onSelectDelta: PropTypes.func.isRequired,