Skip to content

Commit 881e17d

Browse files
committed
See project page button will only save if user can save AND project has changed
1 parent 0210634 commit 881e17d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/menu-bar/menu-bar.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ class MenuBar extends React.Component {
194194
this.props.onRequestCloseFile();
195195
}
196196
handleClickSeeCommunity (waitForUpdate) {
197-
if (this.props.canSave) { // save before transitioning to project page
197+
if (this.props.canSave && this.props.projectChanged) { // save before transitioning to project page
198198
this.props.autoUpdateProject();
199199
waitForUpdate(true); // queue the transition to project page
200200
} else {

0 commit comments

Comments
 (0)