From c04d5bdfb082eeabfb1fcdd8f3530c15e92f403d Mon Sep 17 00:00:00 2001 From: Tom Moor Date: Mon, 21 Sep 2020 19:47:17 -0700 Subject: [PATCH] flow --- app/scenes/Document/components/Editor.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; } };