This commit is contained in:
Cassie Tarakajian 2016-10-19 12:36:40 -04:00
parent 185d8fdd05
commit 93de8596f2
2 changed files with 2 additions and 2 deletions

View file

@ -19,7 +19,7 @@ function Nav(props) {
<li className="nav__item">
<a
className="nav__save"
onClick={props.saveProject}
onClick={() => props.saveProject()}
>
Save
</a>

View file

@ -49,7 +49,7 @@ export function setProjectName(name) {
};
}
export function saveProject(autosave) {
export function saveProject(autosave = false) {
return (dispatch, getState) => {
const state = getState();
if (state.user.id && state.project.owner && state.project.owner.id !== state.user.id) {