Skip to content

Commit

Permalink
fix after push
Browse files Browse the repository at this point in the history
  • Loading branch information
Drimodaren committed Nov 26, 2024
1 parent e80fab1 commit 082f3fb
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/ketcher-core/src/application/editor/EditorHistory.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,14 +51,14 @@ export class EditorHistory {
}
this.historyPointer = this.historyStack.length;
}
ketcherProvider.getKetcher().changeEvent.dispatch();
ketcherProvider.getKetcher()?.changeEvent.dispatch();
}

undo() {
if (this.historyPointer === 0) {
return;
}
ketcherProvider.getKetcher().changeEvent.dispatch();
ketcherProvider.getKetcher()?.changeEvent.dispatch();
assert(this.editor);

this.historyPointer--;
Expand All @@ -73,7 +73,7 @@ export class EditorHistory {
if (this.historyPointer === this.historyStack.length) {
return;
}
ketcherProvider.getKetcher().changeEvent.dispatch();
ketcherProvider.getKetcher()?.changeEvent.dispatch();
assert(this.editor);

const lastCommand = this.historyStack[this.historyPointer];
Expand Down

0 comments on commit 082f3fb

Please sign in to comment.