We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a7d24bf commit 042a5faCopy full SHA for 042a5fa
packages/ketcher-core/src/domain/entities/DrawingEntitiesManager.ts
@@ -3073,7 +3073,7 @@ export class DrawingEntitiesManager {
3073
monomers?: BaseMonomer[],
3074
) {
3075
const editor = CoreEditor.provideEditorInstance();
3076
- if (editor.mode instanceof SequenceMode) {
+ if (!editor || editor.mode instanceof SequenceMode) {
3077
return false;
3078
}
3079
0 commit comments