Skip to content

Commit 042a5fa

Browse files
committed
#6422 – Fix editor check
1 parent a7d24bf commit 042a5fa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/ketcher-core/src/domain/entities/DrawingEntitiesManager.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3073,7 +3073,7 @@ export class DrawingEntitiesManager {
30733073
monomers?: BaseMonomer[],
30743074
) {
30753075
const editor = CoreEditor.provideEditorInstance();
3076-
if (editor.mode instanceof SequenceMode) {
3076+
if (!editor || editor.mode instanceof SequenceMode) {
30773077
return false;
30783078
}
30793079

0 commit comments

Comments
 (0)