fix: Calling method that does not exist on editor (#12427)

This commit is contained in:
Tom Moor
2026-05-21 23:26:04 -04:00
committed by GitHub
parent bf62bd04b0
commit d43280f08e
+2 -2
View File
@@ -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?.();
}
}
}