Skip to content

Commit

Permalink
fix(octra): jodit.history is undefined error on redo/undo
Browse files Browse the repository at this point in the history
  • Loading branch information
julianpoemp committed Dec 10, 2024
1 parent ed69a7a commit a2aee3a
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1803,9 +1803,9 @@ export class TranscrEditorComponent
shortcutInfo: Shortcut
) => {
if (shortcutInfo.name === 'undo') {
this.joditComponent?.jodit?.history.undo();
this.joditComponent?.jodit?.history?.undo();
} else {
this.joditComponent?.jodit?.history.redo();
this.joditComponent?.jodit?.history?.redo();
}
this.triggerTyping();
};
Expand Down

0 comments on commit a2aee3a

Please sign in to comment.