From 2a52512d2da17e9f9c122dc7dc813fd19b1f1cea Mon Sep 17 00:00:00 2001 From: mattk70 Date: Sat, 17 Feb 2024 14:50:35 +0000 Subject: [PATCH] fixed a bug where clicking a species in the summary in explore mode had no effect. Added a check for active row in insert-manual-record --- js/ui.js | 2 +- js/worker.js | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/js/ui.js b/js/ui.js index f9f150ba..ab9d02b2 100644 --- a/js/ui.js +++ b/js/ui.js @@ -4439,7 +4439,7 @@ function track(event, action, name, value){ DBaction: action, batch: batch, confidence: confidence, - active: activeRow.rowIndex - 1 // have to account for the header row + active: activeRow?.rowIndex - 1 // have to account for the header row }) } diff --git a/js/worker.js b/js/worker.js index 3e474f8b..ae373d36 100644 --- a/js/worker.js +++ b/js/worker.js @@ -2397,6 +2397,7 @@ const prepSummaryStatement = (included) => { } else { sendResult(++index, r, true) } + if (i === result.length -1) UI.postMessage({event: 'processing-complete'}) } if (!result.length) { if (STATE.selection) {