Skip to content

Commit dacc8db

Browse files
author
Vikas Agarwal
committed
Github issue#1183, Unwanted "unsaved content alert" when user creates project after logging in
— Fixed
1 parent a5d3fe4 commit dacc8db

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/components/TopBar/ProjectsToolBar.js

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,12 @@ class ProjectsToolBar extends Component {
4848
if (this.props.creatingProject && !nextProps.creatingProject) {
4949
if (!nextProps.projectCreationError
5050
&& nextProps.project && nextProps.project.id) {
51-
this.hideCreateProjectDialog()
52-
this.props.router.push('/projects/' + nextProps.project.id)
51+
this.setState({
52+
isProjectDirty : false
53+
} ,() => {
54+
this.hideCreateProjectDialog()
55+
this.props.router.push('/projects/' + nextProps.project.id)
56+
})
5357
} else {
5458
this.setState({
5559
errorCreatingProject: true

0 commit comments

Comments
 (0)