mirror of
https://github.com/outline/outline.git
synced 2026-11-24 23:00:18 +03:00
flow
This commit is contained in:
1 parent
ea69d09562
commit
c04d5bdfb0
1 file changed
+2
-2
@@ -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<Props> {
|
||||
}
|
||||
if (event.key === "s" && event.metaKey) {
|
||||
event.preventDefault();
|
||||
this.props.onSave();
|
||||
this.props.onSave({});
|
||||
return;
|
||||
}
|
||||
};
|
||||
|
||||
Reference in new issue
Block a user