See project page button will only save if user can save AND project has changed
This commit is contained in:
1 parent
021063470d
commit
881e17dc67
1 file changed
+1
-1
@@ -194,7 +194,7 @@ class MenuBar extends React.Component {
|
||||
this.props.onRequestCloseFile();
|
||||
}
|
||||
handleClickSeeCommunity (waitForUpdate) {
|
||||
if (this.props.canSave) { // save before transitioning to project page
|
||||
if (this.props.canSave && this.props.projectChanged) { // save before transitioning to project page
|
||||
this.props.autoUpdateProject();
|
||||
waitForUpdate(true); // queue the transition to project page
|
||||
} else {
|
||||
|
||||
Reference in new issue
Block a user