From 35ce14a9293a90ec63ec2f6423fbbbaff075a30e Mon Sep 17 00:00:00 2001 From: Martin Artnik Date: Wed, 21 Feb 2024 13:29:07 +0100 Subject: [PATCH] Fix MarvinJS initiaization [SCI-10260] --- app/assets/javascripts/sitewide/marvinjs_editor.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/app/assets/javascripts/sitewide/marvinjs_editor.js b/app/assets/javascripts/sitewide/marvinjs_editor.js index c760546b5..5b6e3e2ac 100644 --- a/app/assets/javascripts/sitewide/marvinjs_editor.js +++ b/app/assets/javascripts/sitewide/marvinjs_editor.js @@ -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') {