From a86012bcba8534364aa10e8741f480326f0c8b67 Mon Sep 17 00:00:00 2001 From: Jordan Lee Date: Wed, 1 Jan 2020 23:46:31 +1100 Subject: [PATCH] Update index.js --- src/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.js b/src/index.js index 810e2be..7014978 100644 --- a/src/index.js +++ b/src/index.js @@ -12,7 +12,7 @@ type Command = string; const createCodeEditorPlugin = (options?: Options) => { return { - handleKeyCommand(command: Command, editorState: EditorState, { setEditorState }: PluginFunctions) { + handleKeyCommand(command: Command, editorState: EditorState, _: any, { setEditorState }: PluginFunctions) { let newState; if (CodeUtils.hasSelectionInBlock(editorState)) {