fix: if a file is uploaded, not converted and then another file is uploaded, the selected output format is now also reset

This commit is contained in:
theoleuthardt 2025-02-19 14:05:00 +01:00
parent 80daad2700
commit 3bcd052235

View file

@ -37,6 +37,7 @@ export default function DocConverter() {
setFile(selectedFile); setFile(selectedFile);
setDownloadUrl(""); setDownloadUrl("");
setSelectedOutputFormat("");
const matchedFormat = outputFileFormats.find((format) => const matchedFormat = outputFileFormats.find((format) =>
format.input.toLowerCase().includes(fileExtension || ""), format.input.toLowerCase().includes(fileExtension || ""),