From e9fb34490ac4d118c0374d356133f41d3e498cd6 Mon Sep 17 00:00:00 2001 From: Opender Singh Date: Mon, 3 Aug 2020 22:13:08 +1200 Subject: [PATCH] Fix a bug with bulk query edit (#2479) --- packages/insomnia-app/app/ui/components/wrapper-debug.js | 2 +- packages/insomnia-app/app/ui/components/wrapper.js | 9 +++++++++ 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/packages/insomnia-app/app/ui/components/wrapper-debug.js b/packages/insomnia-app/app/ui/components/wrapper-debug.js index 248c3a56b..2764ff9c3 100644 --- a/packages/insomnia-app/app/ui/components/wrapper-debug.js +++ b/packages/insomnia-app/app/ui/components/wrapper-debug.js @@ -111,6 +111,7 @@ class WrapperDebug extends React.PureComponent { handleUpdateRequestUrl, handleUpdateSettingsShowPasswords, handleUpdateSettingsUseBulkHeaderEditor, + handleUpdateSettingsUseBulkParametersEditor, } = this.props; const { @@ -149,7 +150,6 @@ class WrapperDebug extends React.PureComponent { handleStartDragPaneVertical, handleUpdateDownloadPath, handleUpdateRequestMimeType, - handleUpdateSettingsUseBulkParametersEditor, headerEditorKey, isVariableUncovered, isLoading, diff --git a/packages/insomnia-app/app/ui/components/wrapper.js b/packages/insomnia-app/app/ui/components/wrapper.js index af5c6e9e1..ea317428e 100644 --- a/packages/insomnia-app/app/ui/components/wrapper.js +++ b/packages/insomnia-app/app/ui/components/wrapper.js @@ -354,6 +354,12 @@ class Wrapper extends React.PureComponent { return sUpdate(this.props.settings, { useBulkHeaderEditor }); } + _handleUpdateSettingsUseBulkParametersEditor( + useBulkParametersEditor: boolean, + ): Promise { + return sUpdate(this.props.settings, { useBulkParametersEditor }); + } + _handleImportFile(forceToWorkspace?: ForceToWorkspace): void { this.props.handleImportFileToWorkspace(this.props.activeWorkspace._id, forceToWorkspace); } @@ -827,6 +833,9 @@ class Wrapper extends React.PureComponent { handleUpdateSettingsUseBulkHeaderEditor={ this._handleUpdateSettingsUseBulkHeaderEditor } + handleUpdateSettingsUseBulkParametersEditor={ + this._handleUpdateSettingsUseBulkParametersEditor + } wrapperProps={this.props} /> )}