From 61818bec80f65aa9e730c425caa3811030be8bda Mon Sep 17 00:00:00 2001 From: Mattk70 Date: Wed, 7 Aug 2024 16:23:13 +0100 Subject: [PATCH] Fixed an issue with undefined 'position' when batch editing results. Bumped version --- js/worker.js | 2 +- package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/js/worker.js b/js/worker.js index d16df562..e5937db2 100644 --- a/js/worker.js +++ b/js/worker.js @@ -2061,7 +2061,7 @@ const onInsertManualRecord = async ({ cname, start, end, comment, count, file, l STATE.db === diskDB ? UI.postMessage({ event: 'diskDB-has-records' }) : UI.postMessage({event: 'unsaved-records'}); } if (updateResults){ - position.start = start; + if (position) position.start = start; await getResults({species:speciesFiltered, position: position}); await getSummary({species: speciesFiltered}); } diff --git a/package.json b/package.json index c3abd60b..4c0849c1 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "chirpity", - "version": "1.10.3", + "version": "1.10.4", "description": "Chirpity Nocmig", "main": "main.js", "scripts": {