From e55a3bf36abf834200e5bf55548d51f6e1f6cf1c Mon Sep 17 00:00:00 2001 From: Ross Date: Mon, 11 May 2026 12:00:38 +0100 Subject: [PATCH] fix: Correct duplicate check logic in upload process --- atlas/templates/atlas/new_uploads.html | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/atlas/templates/atlas/new_uploads.html b/atlas/templates/atlas/new_uploads.html index 72fa1d0b..f1671790 100644 --- a/atlas/templates/atlas/new_uploads.html +++ b/atlas/templates/atlas/new_uploads.html @@ -327,7 +327,7 @@ const hasDuplicates = window.uploadPreview.records.some(r => r.include && r.duplicate); const duplicatesEnabled = document.getElementById("check-duplicates")?.checked; const hasPendingDuplicateChecks = duplicatesEnabled && hasSelected && - window.uploadPreview.records.some((r) => r.include && !r.duplicateChecked); + window.uploadPreview.records.some((r) => r.include && !r.duplicateChecked); if (!hasSelected) { uploadButton.disabled = true; @@ -917,9 +917,9 @@ if (document.getElementById("check-duplicates").checked && window.uploadPreview.records.some((r) => r.include && !r.duplicateChecked)) { - alert("Duplicate checks are still running or incomplete. Please wait for all checks to finish before uploading."); - return; - } + alert("Duplicate checks are still running or incomplete. Please wait for all checks to finish before uploading."); + return; + } resetUploadResults(); showLoading(true, "Uploading...");