Merge pull request #7123 from artoscinote/ma_SCI_10260

Fix MarvinJS initiaization [SCI-10260]
This commit is contained in:
Martin Artnik 2024-02-21 13:30:47 +01:00 committed by GitHub
commit ec723babbd
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -320,9 +320,7 @@ $(document).on('click', '.gene-sequence-edit-button', function() {
});
function initMarvinJs() {
if (!window.MarvinJsEditor) {
MarvinJsEditor = MarvinJsEditorApi();
}
MarvinJsEditor = MarvinJsEditorApi();
if (MarvinJsEditor.enabled()) {
if (typeof (ChemicalizeMarvinJs) === 'undefined') {