🛡️ Warracker is an open source, self-hostable warranty tracker to monitor expirations, store receipts, files. You own the data, your rules!
Fix #206: add-warranty dialog kept the previous photo preview
Omega (QA)b7d5a57b23b6
diff --git a/frontend/js/components/addWarrantyForm.js b/frontend/js/components/addWarrantyForm.jsindex d64e87d..2555937 100644--- a/frontend/js/components/addWarrantyForm.js+++ b/frontend/js/components/addWarrantyForm.js@@ -555,7 +555,9 @@ export function resetAddWarrantyWizard() {addSerialNumberInput('');}Object.values(state.fileInputs).forEach((entry) => {+ if (entry.input) entry.input.value = '';if (entry.label) entry.label.textContent = '';+ if (entry.previewImage) entry.previewImage.removeAttribute('src');if (entry.previewWrapper) entry.previewWrapper.style.display = 'none';});clearPaperlessSelection('invoice');