From 74f91d63f664dde9bea985a17b117749761a7bbb Mon Sep 17 00:00:00 2001 From: Qstick Date: Sat, 7 Oct 2017 00:06:21 -0400 Subject: [PATCH] Fixed: metadata modal not closing --- .../Settings/Metadata/Metadata/EditMetadataModalConnector.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/src/Settings/Metadata/Metadata/EditMetadataModalConnector.js b/frontend/src/Settings/Metadata/Metadata/EditMetadataModalConnector.js index cab19a4c4..4f80d5f14 100644 --- a/frontend/src/Settings/Metadata/Metadata/EditMetadataModalConnector.js +++ b/frontend/src/Settings/Metadata/Metadata/EditMetadataModalConnector.js @@ -20,7 +20,7 @@ class EditMetadataModalConnector extends Component { // Listeners onModalClose = () => { - this.props.clearPendingChanges({ section: 'metadatas' }); + this.props.dispatchClearPendingChanges(); this.props.onModalClose(); } @@ -39,7 +39,7 @@ class EditMetadataModalConnector extends Component { EditMetadataModalConnector.propTypes = { onModalClose: PropTypes.func.isRequired, - clearPendingChanges: PropTypes.func.isRequired + dispatchClearPendingChanges: PropTypes.func.isRequired }; export default connect(null, createMapDispatchToProps)(EditMetadataModalConnector);