diff --git a/app/static/js/RessourceLists/SpacyNLPPipelineModelList.js b/app/static/js/RessourceLists/SpacyNLPPipelineModelList.js index 2be53110..66bce648 100644 --- a/app/static/js/RessourceLists/SpacyNLPPipelineModelList.js +++ b/app/static/js/RessourceLists/SpacyNLPPipelineModelList.js @@ -96,9 +96,7 @@ class SpaCyNLPPipelineModelList extends RessourceList { } onClick(event) { - if (event.target.closest('.action-switch')) { - return; - } + if (event.target.closest('.action-switch')) {return;} let actionButtonElement = event.target.closest('.action-button'); let action = actionButtonElement === null ? 'view' : actionButtonElement.dataset.action; let spaCyNLPPipelineModelElement = event.target.closest('tr'); diff --git a/app/static/js/RessourceLists/TesseractOCRPipelineModelList.js b/app/static/js/RessourceLists/TesseractOCRPipelineModelList.js index 8a987016..b527ec18 100644 --- a/app/static/js/RessourceLists/TesseractOCRPipelineModelList.js +++ b/app/static/js/RessourceLists/TesseractOCRPipelineModelList.js @@ -96,9 +96,7 @@ class TesseractOCRPipelineModelList extends RessourceList { } onClick(event) { - if (event.target.closest('.action-switch')) { - return; - } + if (event.target.closest('.action-switch')) {return;} let actionButtonElement = event.target.closest('.action-button'); let action = actionButtonElement === null ? 'view' : actionButtonElement.dataset.action; let tesseractOCRPipelineModelElement = event.target.closest('tr');