No dialog when switching sections

This commit is contained in:
Chi Vinh Le
2018-05-01 16:29:40 +02:00
parent fd3f5e5116
commit 2af3a94ce4
@@ -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 = () => {