From f686606b9e9c17cf4e4043864d2cf3dda38bcf7d Mon Sep 17 00:00:00 2001 From: Kailash Nadh Date: Tue, 18 Dec 2018 23:55:18 +0530 Subject: [PATCH] Fix broken close function in clone campaign modal --- frontend/my/src/Campaigns.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/frontend/my/src/Campaigns.js b/frontend/my/src/Campaigns.js index b3473c63..e82b089c 100644 --- a/frontend/my/src/Campaigns.js +++ b/frontend/my/src/Campaigns.js @@ -18,6 +18,7 @@ class Campaigns extends React.PureComponent { record: null, previewRecord: null, cloneName: "", + cloneModalVisible: false, modalWaiting: false } @@ -353,7 +354,7 @@ class Campaigns extends React.PureComponent { } handleToggleCloneForm = (record) => { - this.setState({ record: record, cloneName: record.name }) + this.setState({ cloneModalVisible: !this.state.cloneModalVisible, record: record, cloneName: record.name }) } handleCloneCampaign = (record) => { @@ -410,7 +411,7 @@ class Campaigns extends React.PureComponent { /> } - { this.state.record && + { this.state.cloneModalVisible && this.state.record &&