See project page button will only save if user can save AND project has changed

This commit is contained in:
Ben Wheeler committed 2019-04-01 14:40:48 -04:00
1 parent 021063470d
commit 881e17dc67
1 file changed
+1 -1
+1 -1
View File
@@ -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 {