Dedktop: Fix typo when passing generic editor commands to the editor (#4240)

pull/4245/head^2
Caleb John 2020-12-21 03:32:42 -07:00 committed by GitHub
parent f16fd6462b
commit 18c5404cbc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -223,7 +223,7 @@ function CodeMirror(props: NoteBodyEditorProps, ref: any) {
if (commands[cmd.name]) {
commandOutput = commands[cmd.name](cmd.value);
} else if (editorRef.current.supportsCommand(cmd)) {
commandOutput = editorRef.current.execCommandFromJoplinCommand(cmd);
commandOutput = editorRef.current.execCommandFromJoplin(cmd);
} else {
reg.logger().warn('CodeMirror: unsupported Joplin command: ', cmd);
}