Fix a bug with bulk query edit (#2479)

This commit is contained in:
Opender Singh 2020-08-03 22:13:08 +12:00 committed by GitHub
parent e3f9e3c1d4
commit e9fb34490a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 10 additions and 1 deletions

View File

@ -111,6 +111,7 @@ class WrapperDebug extends React.PureComponent<Props> {
handleUpdateRequestUrl,
handleUpdateSettingsShowPasswords,
handleUpdateSettingsUseBulkHeaderEditor,
handleUpdateSettingsUseBulkParametersEditor,
} = this.props;
const {
@ -149,7 +150,6 @@ class WrapperDebug extends React.PureComponent<Props> {
handleStartDragPaneVertical,
handleUpdateDownloadPath,
handleUpdateRequestMimeType,
handleUpdateSettingsUseBulkParametersEditor,
headerEditorKey,
isVariableUncovered,
isLoading,

View File

@ -354,6 +354,12 @@ class Wrapper extends React.PureComponent<WrapperProps, State> {
return sUpdate(this.props.settings, { useBulkHeaderEditor });
}
_handleUpdateSettingsUseBulkParametersEditor(
useBulkParametersEditor: boolean,
): Promise<Settings> {
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<WrapperProps, State> {
handleUpdateSettingsUseBulkHeaderEditor={
this._handleUpdateSettingsUseBulkHeaderEditor
}
handleUpdateSettingsUseBulkParametersEditor={
this._handleUpdateSettingsUseBulkParametersEditor
}
wrapperProps={this.props}
/>
)}