From d4cf01c645ba1fa40e65c0a3490bb26e973875a5 Mon Sep 17 00:00:00 2001 From: NikoAnderson Date: Fri, 23 Aug 2024 15:18:42 -0400 Subject: [PATCH] rearranging editor switch order --- .../core/structure-editor/structure-editor.component.ts | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/app/core/structure-editor/structure-editor.component.ts b/src/app/core/structure-editor/structure-editor.component.ts index 2534a9f1b..b13852980 100644 --- a/src/app/core/structure-editor/structure-editor.component.ts +++ b/src/app/core/structure-editor/structure-editor.component.ts @@ -286,10 +286,9 @@ export class StructureEditorComponent implements OnInit, AfterViewInit, OnDestro // this.editor = new EditorImplementation(this.ketcher, this.jsdraw, 'ketcher'); this.editor = new EditorImplementation(this.ketcher); this.structureService.interpretStructure(Response).subscribe(resp => { - this.ketcher.setMolecule(resp.structure.molfile); - this.editorSwitched.emit(this.structureEditor); - // only required for JSDRaw, ends up deleting brackets occasionally in some pages if enabled for ketcher - // this.editorOnLoad.emit(this.editor); + this.editorOnLoad.emit(this.editor); + this.editorSwitched.emit(this.structureEditor); + this.ketcher.setMolecule(resp.structure.molfile); }); sessionStorage.setItem('gsrsStructureEditor', 'ketcher');