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">
|
<li className="nav__item">
|
||||||
<a
|
<a
|
||||||
className="nav__save"
|
className="nav__save"
|
||||||
onClick={props.saveProject}
|
onClick={() => props.saveProject()}
|
||||||
>
|
>
|
||||||
Save
|
Save
|
||||||
</a>
|
</a>
|
||||||
|
|
|
@ -49,7 +49,7 @@ export function setProjectName(name) {
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
export function saveProject(autosave) {
|
export function saveProject(autosave = false) {
|
||||||
return (dispatch, getState) => {
|
return (dispatch, getState) => {
|
||||||
const state = getState();
|
const state = getState();
|
||||||
if (state.user.id && state.project.owner && state.project.owner.id !== state.user.id) {
|
if (state.user.id && state.project.owner && state.project.owner.id !== state.user.id) {
|
||||||
|
|
Loading…
Reference in a new issue