fix: Correct duplicate check logic in upload process
This commit is contained in:
@@ -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...");
|
||||
|
||||
Reference in New Issue
Block a user