diff options
Diffstat (limited to 'devtools/client/netmonitor/src/components/new-request/HTTPCustomRequestPanel.js')
-rw-r--r-- | devtools/client/netmonitor/src/components/new-request/HTTPCustomRequestPanel.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/devtools/client/netmonitor/src/components/new-request/HTTPCustomRequestPanel.js b/devtools/client/netmonitor/src/components/new-request/HTTPCustomRequestPanel.js index 826f0317ba..1894f1be04 100644 --- a/devtools/client/netmonitor/src/components/new-request/HTTPCustomRequestPanel.js +++ b/devtools/client/netmonitor/src/components/new-request/HTTPCustomRequestPanel.js @@ -476,12 +476,12 @@ class HTTPCustomRequestPanel extends Component { url: this.state.url, cause: this.props.request?.cause, urlQueryParams: this.state.urlQueryParams.map( - ({ checked, ...params }) => params + ({ ...params }) => params ), requestHeaders: { headers: this.state.headers .filter(({ checked }) => checked) - .map(({ checked, ...headersValues }) => headersValues), + .map(({ ...headersValues }) => headersValues), }, }; @@ -504,7 +504,7 @@ class HTTPCustomRequestPanel extends Component { module.exports = connect( state => ({ request: getClickedRequest(state) }), - (dispatch, props) => ({ + dispatch => ({ sendCustomRequest: request => dispatch(Actions.sendHTTPCustomRequest(request)), }) |