diff --git a/app/scenes/Document/components/Editor.js b/app/scenes/Document/components/Editor.js index 5ab15a5c..9180f23a 100644 --- a/app/scenes/Document/components/Editor.js +++ b/app/scenes/Document/components/Editor.js @@ -21,7 +21,7 @@ type Props = { isDraft: boolean, isShare: boolean, readOnly?: boolean, - onSave: ({ publish?: boolean, done?: boolean }) => mixed, + onSave: ({ publish?: boolean, done?: boolean, autosave?: boolean }) => mixed, innerRef: { current: any }, }; @@ -68,7 +68,7 @@ class DocumentEditor extends React.Component { } if (event.key === "s" && event.metaKey) { event.preventDefault(); - this.props.onSave(); + this.props.onSave({}); return; } };