From dcd666b117e2099d769e2bec164d844b921292c4 Mon Sep 17 00:00:00 2001 From: Prakash P S Date: Thu, 7 Sep 2023 18:40:53 +0530 Subject: [PATCH] updated the close logic Signed-off-by: Prakash P S --- .../components/UpdateChannelMspModal/UpdateChannelMspModal.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/apollo/src/components/UpdateChannelMspModal/UpdateChannelMspModal.js b/packages/apollo/src/components/UpdateChannelMspModal/UpdateChannelMspModal.js index d37e835e0..13095607f 100644 --- a/packages/apollo/src/components/UpdateChannelMspModal/UpdateChannelMspModal.js +++ b/packages/apollo/src/components/UpdateChannelMspModal/UpdateChannelMspModal.js @@ -200,6 +200,7 @@ class UpdateChannelMspModal extends React.Component { this.props.updateState(SCOPE, { submit_identity_options: null, }); + this.props.onClose(); } onSubmit = () => { @@ -471,7 +472,7 @@ class UpdateChannelMspModal extends React.Component { title="update_msp_definition" disable_focus_trap={true} loading={this.props.loading} - onClose={this.props.onClose} + onClose={this.onClose} onSubmit={this.onSubmit} submitButtonLabel={translate('update_msp_definition')} error={this.props.error}