mirror of
https://github.com/outline/outline.git
synced 2026-06-13 03:14:59 +03:00
fix: Calling method that does not exist on editor (#12427)
This commit is contained in:
@@ -155,11 +155,11 @@ function DocumentScene({
|
||||
|
||||
if (event.shiftKey) {
|
||||
if (!readOnly) {
|
||||
editorRef.current?.commands.redo();
|
||||
editorRef.current?.commands.redo?.();
|
||||
}
|
||||
} else {
|
||||
if (!readOnly) {
|
||||
editorRef.current?.commands.undo();
|
||||
editorRef.current?.commands.undo?.();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user