Skip to content

Commit

Permalink
rearranging editor switch order
Browse files Browse the repository at this point in the history
  • Loading branch information
NikoAnderson committed Aug 23, 2024
1 parent 242442f commit d4cf01c
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/app/core/structure-editor/structure-editor.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down

0 comments on commit d4cf01c

Please sign in to comment.