fix #154
This commit is contained in:
parent
185d8fdd05
commit
93de8596f2
2 changed files with 2 additions and 2 deletions
|
@ -19,7 +19,7 @@ function Nav(props) {
|
|||
<li className="nav__item">
|
||||
<a
|
||||
className="nav__save"
|
||||
onClick={props.saveProject}
|
||||
onClick={() => props.saveProject()}
|
||||
>
|
||||
Save
|
||||
</a>
|
||||
|
|
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue