From 2af3a94ce476d6aab1cfbfaa966b15a459f82858 Mon Sep 17 00:00:00 2001 From: Chi Vinh Le Date: Tue, 1 May 2018 16:29:40 +0200 Subject: [PATCH] No dialog when switching sections --- .../src/routes/Configure/containers/Configure.js | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/client/coral-admin/src/routes/Configure/containers/Configure.js b/client/coral-admin/src/routes/Configure/containers/Configure.js index 4910a2ec4..6cba60524 100644 --- a/client/coral-admin/src/routes/Configure/containers/Configure.js +++ b/client/coral-admin/src/routes/Configure/containers/Configure.js @@ -49,14 +49,7 @@ class ConfigureContainer extends React.Component { handleSectionChange = async section => { const nextRoute = `/admin/configure/${section}`; - - if (this.shouldShowSaveDialog()) { - this.nextRoute = nextRoute; - this.props.showSaveDialog(); - } else { - // Just go to the section - this.props.router.push(nextRoute); - } + this.props.router.push(nextRoute); }; shouldShowSaveDialog = () => {