Skip to content

Commit

Permalink
Undelete now works when species filter applied
Browse files Browse the repository at this point in the history
  • Loading branch information
Mattk70 committed Feb 20, 2024
1 parent a4928b9 commit dd1c15e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion js/ui.js
Original file line number Diff line number Diff line change
Expand Up @@ -4446,7 +4446,6 @@ function track(event, action, name, value){


const insertManualRecord = (cname, start, end, comment, count, label, action, batch, originalCname, confidence) => {
resetResults({clearPagination: false})
const files = batch ? fileList : currentFile;
worker.postMessage({
action: 'insert-manual-record',
Expand All @@ -4464,6 +4463,7 @@ function track(event, action, name, value){
active: activeRow?.rowIndex - 1, // have to account for the header row
speciesFiltered: isSpeciesViewFiltered(true)
})
resetResults({clearPagination: false})
}


Expand Down
1 change: 1 addition & 0 deletions js/worker.js
Original file line number Diff line number Diff line change
Expand Up @@ -2309,6 +2309,7 @@ const prepSummaryStatement = (included) => {
WITH ranked_records AS (
SELECT
dateTime,
cname,
RANK() OVER (PARTITION BY records.dateTime ORDER BY records.confidence DESC) AS rank
FROM records
JOIN species ON records.speciesID = species.id
Expand Down

0 comments on commit dd1c15e

Please sign in to comment.