From a2aee3a315938d154171b2ac1f32384516ac3829 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julian=20P=C3=B6mp?= Date: Tue, 10 Dec 2024 14:26:21 +0100 Subject: [PATCH] fix(octra): jodit.history is undefined error on redo/undo --- .../core/component/transcr-editor/transcr-editor.component.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/octra/src/app/core/component/transcr-editor/transcr-editor.component.ts b/apps/octra/src/app/core/component/transcr-editor/transcr-editor.component.ts index 2323e8d7a..86f152051 100644 --- a/apps/octra/src/app/core/component/transcr-editor/transcr-editor.component.ts +++ b/apps/octra/src/app/core/component/transcr-editor/transcr-editor.component.ts @@ -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(); };