From 3004334d054f43816bb7c8e1c37f67c70ec4499c Mon Sep 17 00:00:00 2001 From: Patrick Jentsch Date: Thu, 17 Nov 2022 13:10:06 +0100 Subject: [PATCH] simplification --- app/static/js/RessourceLists/SpacyNLPPipelineModelList.js | 4 +--- app/static/js/RessourceLists/TesseractOCRPipelineModelList.js | 4 +--- 2 files changed, 2 insertions(+), 6 deletions(-) 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');