Merge pull request #4710 from benjiwheeler/only-autosave-if-changed

Share, See-project-page buttons will only save if project has changed
This commit is contained in:
Benjamin Wheeler authored and GitHub committed 2019-04-17 14:55:22 -04:00
commit 5c1d3e38bd
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 {